Skip to content

Commit 17c715f

Browse files
committed
fix actions with Node.js 16
1 parent bed144c commit 17c715f

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/npm.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ jobs:
77
name: Build
88
strategy:
99
matrix:
10-
os: [ubuntu-latest]
11-
node: [13]
10+
os:
11+
- ubuntu-latest
12+
node-version:
13+
- 16
1214

1315
runs-on: ${{ matrix.os }}
1416
steps:
1517
- uses: actions/checkout@v2
1618
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
19+
uses: actions/setup-node@v2
1820
with:
1921
node-version: ${{ matrix.node-version }}
22+
cache: npm
23+
cache-dependency-path: package.json
2024

2125
- name: Install Dependencies
2226
run: npm install
@@ -30,9 +34,12 @@ jobs:
3034
runs-on: ubuntu-latest
3135
steps:
3236
- uses: actions/checkout@v2
33-
- uses: actions/setup-node@v1
37+
- uses: actions/setup-node@v2
3438
with:
35-
node-version: 13
39+
node-version: 16
40+
cache: npm
41+
cache-dependency-path: package.json
42+
3643
- run: npm install
3744
- run: ./scripts/generate-version.sh
3845
- run: ./scripts/npm-pack-testing.sh
@@ -44,10 +51,12 @@ jobs:
4451
runs-on: ubuntu-latest
4552
steps:
4653
- uses: actions/checkout@v2
47-
- uses: actions/setup-node@v1
54+
- uses: actions/setup-node@v2
4855
with:
49-
node-version: 13
56+
node-version: 16
5057
registry-url: https://registry.npmjs.org/
58+
cache: npm
59+
cache-dependency-path: package.json
5160
- run: npm install
5261
- run: ./scripts/generate-version.sh
5362
- run: ./scripts/package-publish-config-tag.sh

0 commit comments

Comments
 (0)