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