Skip to content

Commit

Permalink
- chore: GH action for release
Browse files Browse the repository at this point in the history
  • Loading branch information
le0m committed Feb 12, 2020
1 parent f14814e commit 087bb08
Show file tree
Hide file tree
Showing 4 changed files with 3,450 additions and 77 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
version: '12'
- run: yarn install
- run: yarn lint
- run: yarn test
- run: yarn build
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
version: 12
version: '12'
- run: yarn install
- run: yarn lint
- run: yarn test
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"eslint-plugin-mocha-no-only": "^1.1.0",
"esm": "^3.2.25",
"mocha": "^6.2.2",
"semantic-release": "^17.0.2",
"terser-webpack-plugin": "^2.3.4",
"webpack": "^4.38.0",
"webpack-cli": "^3.3.6"
Expand All @@ -35,5 +36,15 @@
"@babel/runtime": "^7.8.4",
"@octokit/rest": "^16.38.2",
"regenerator-runtime": "^0.13.3"
},
"release": {
"publish": [
{
"path": "@semantic-release/github",
"assets": [
"dist/*.js"
]
}
]
}
}
Loading

0 comments on commit 087bb08

Please sign in to comment.