Skip to content

Commit bf437e1

Browse files
committed
build: update workflow
1 parent 644e696 commit bf437e1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ on:
1212
jobs:
1313
build:
1414

15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-18.04
1616

1717
strategy:
1818
matrix:
19-
node-version: [12.x]
19+
node-version: [12.x, 14.x]
2020

2121
steps:
2222
- uses: actions/checkout@v2

.github/workflows/npmpublish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
build:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-18.04
1313
steps:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-node@v1
@@ -21,16 +21,17 @@ jobs:
2121

2222
publish-npm:
2323
needs: build
24-
runs-on: ubuntu-latest
24+
runs-on: ubuntu-18.04
2525
steps:
2626
- uses: actions/checkout@v2
2727
- uses: actions/setup-node@v1
2828
with:
2929
node-version: 12
3030
registry-url: https://registry.npmjs.org/
3131
- run: npm ci
32+
- run: npm run build
3233
- run: npm publish --access public
3334
env:
34-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3536

3637

0 commit comments

Comments
 (0)