Skip to content

Commit

Permalink
👷 自動リリース
Browse files Browse the repository at this point in the history
  • Loading branch information
ci7lus committed Jul 6, 2020
1 parent 1352ca6 commit e52f4da
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 5 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: |
yarn
- name: Build
run: |
yarn build
- name: npm setup
run: |
echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" >> ~/.npmrc
echo "@$(echo "$REPOSITORY_OWNER" | tr '[:upper:]' '[:lower:]' ):registry=https://npm.pkg.github.com" >> ~/.npmrc
env:
REPOSITORY_OWNER: ${{ github.repository_owner }}
GITHUB_TOKEN: ${{ github.token }}
- name: npm publish
run: |
npm publish
17 changes: 13 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"name": "sleep",
"version": "1.0.0",
"main": "dist/index.js",
"name": "@vivid-lapin/symmetrical-umbrella",
"version": "0.0.3",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"package.json",
"lib/**/*"
],
"author": "ci7lus <7887955+ci7lus@users.noreply.github.com>",
"license": "MIT",
"devDependencies": {
Expand All @@ -14,5 +19,9 @@
"scripts": {
"build": "tsc",
"test": "jest"
}
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
},
"repository": "git@github.com:vivid-lapin/symmetrical-umbrella.git"
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
"declaration": true /* Generates corresponding '.d.ts' file. */,
"declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */,
// "declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */,
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "./lib" /* Redirect output structure to the directory. */,
Expand Down

0 comments on commit e52f4da

Please sign in to comment.