Configure dependabot (#207)
[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
e0d233a8
JB
19
20 - name: Install
21 run: npm ci
22
23 - name: Production Build
24 run: npm run build:prod
25
26 - name: Lint
27 run: npm run lint
28
29 - name: Production Tests & Coverage
30 run: |
31 npm run test:prod
32 npm run coverage
33 env:
34 CI: true
11caf266 35
90bd5e47 36 publish-npm:
37 needs: build
38 runs-on: ubuntu-latest
39
40 steps:
41 - name: Checkout
42 uses: actions/checkout@v2
43
515e5da7 44 - name: Setup Node
022a17cd 45 uses: actions/setup-node@v2
11caf266
APA
46 with:
47 node-version: 12
48 registry-url: https://registry.npmjs.org/
515e5da7
APA
49
50 - name: Install
90bd5e47 51 run: npm ci
52
515e5da7 53 - name: Publish
e41beb60 54 run: npm publish
11caf266
APA
55 env:
56 NODE_AUTH_TOKEN: ${{secrets.npm_token}}