Ci setup #2
3 changed files with 3356 additions and 45 deletions
18
.github/workflows/nodejs.yml
vendored
18
.github/workflows/nodejs.yml
vendored
|
@ -50,4 +50,22 @@ jobs:
|
|||
node-version: ${{ matrix.node-version }}
|
||||
- run: yarn
|
||||
- run: yarn build
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'master'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
- name: Node setup
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
- name: Prepare
|
||||
run: yarn && yarn build
|
||||
- name: Release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
run: yarn semantic-release
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
"mock-fs": "^4.11.0",
|
||||
"pre-commit": "^1.2.2",
|
||||
"prettier": "^1.19.1",
|
||||
"rimraf": "^3.0.2"
|
||||
"rimraf": "^3.0.2",
|
||||
"semantic-release": "^17.0.4"
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue