Skip to content

Commit 09e45cd

Browse files
committed
Update GitHub Actions scripts
1 parent 802628d commit 09e45cd

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/node.js.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# https://github.com/actions/starter-workflows/blob/c934669ce246e6d64e54006b714b04199cbe445b/ci/node.js.yml
1+
# https://github.com/actions/starter-workflows/blob/a85155b04a1b885de7a5021312303fe5c1cb58e4/ci/node.js.yml
22

33
name: Node.js CI
44

@@ -11,16 +11,15 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node-version: [12.x, 14.x]
14+
node-version: [12.x, 14.x, 16.x]
1515

1616
steps:
1717
- uses: actions/checkout@v2
1818
- name: Use Node.js ${{matrix.node-version}}
19-
uses: actions/setup-node@v1
19+
uses: actions/setup-node@v2
2020
with:
2121
node-version: ${{matrix.node-version}}
22+
cache: 'npm'
2223
- run: npm ci
2324
- run: npm run lint
2425
- run: npm run build
25-
env:
26-
CI: true

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# https://github.com/actions/starter-workflows/blob/c934669ce246e6d64e54006b714b04199cbe445b/ci/npm-publish.yml
1+
# https://github.com/actions/starter-workflows/blob/a85155b04a1b885de7a5021312303fe5c1cb58e4/ci/npm-publish.yml
22

33
name: Node.js Package
44

@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
14-
- uses: actions/setup-node@v1
14+
- uses: actions/setup-node@v2
1515
with:
16-
node-version: 12
16+
node-version: 14
1717
- run: npm ci
1818
- run: npm run lint
1919
- run: npm run build
@@ -23,9 +23,9 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- uses: actions/checkout@v2
26-
- uses: actions/setup-node@v1
26+
- uses: actions/setup-node@v2
2727
with:
28-
node-version: 12
28+
node-version: 14
2929
registry-url: https://registry.npmjs.org/
3030
- run: npm ci
3131
- run: npm publish --access public

0 commit comments

Comments
 (0)