1 | name: Node CD
|
2 |
|
3 | on:
|
4 | push:
|
5 | branches:
|
6 | - master
|
7 |
|
8 | jobs:
|
9 | build:
|
10 | runs-on: ubuntu-latest
|
11 | steps:
|
12 | - uses: actions/checkout@v2
|
13 | - uses: actions/setup-node@v1
|
14 | with:
|
15 | node-version: "12.x"
|
16 | registry-url: "https://registry.npmjs.org"
|
17 | - run: yarn install
|
18 | - run: yarn build
|
19 | - run: yarn release
|
20 | env:
|
21 | GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
22 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
23 | NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|