UNPKG

706 BYAMLView Raw
1name: Test and publish to npm
2
3on:
4 push:
5 tags:
6 - v*
7
8jobs:
9 test:
10 runs-on: ubuntu-latest
11
12 strategy:
13 matrix:
14 node-version: [8.x, 10.x, 12.x]
15
16 steps:
17 - uses: actions/checkout@v1
18 - name: Use Node.js ${{ matrix.node-version }}
19 uses: actions/setup-node@v1
20 with:
21 node-version: ${{ matrix.node-version }}
22
23 - name: npm install and test
24 run: |
25 npm install
26 npm test
27
28 release:
29 runs-on: ubuntu-latest
30 steps:
31 - uses: actions/checkout@v1
32 - name: Make stable release to npm
33 uses: epeli/npm-release@v1
34 with:
35 type: stable
36 token: ${{ secrets.NPM_TOKEN }}