Add publish step into one job
[poolifier.git] / .github / workflows / npmpublish.yml
1 name: Node.js Package
2
3 on:
4 release:
5 types: [created]
6
7 jobs:
8 build:
9 runs-on: ubuntu-latest
10
11 steps:
12 - name: Checkout
13 uses: actions/checkout@v2
14
15 - name: Setup Node
16 uses: actions/setup-node@v2
17 with:
18 node-version: 12
19 - run: npm ci
20 - run: npm run test:prod
21 - run: npm run lint
22 - run: npm run coverage
23
24 - name: Setup Node
25 uses: actions/setup-node@v2
26 with:
27 node-version: 12
28 registry-url: https://registry.npmjs.org/
29
30 - name: Install
31 run: npm ci --production
32
33 - name: Publish
34 run: npm publish --tags
35 env:
36 NODE_AUTH_TOKEN: ${{secrets.npm_token}}