Skip to content

Commit 5cf2495

Browse files
committed
Update node-js-ci workflow to fix broken npm installs
1 parent aacc806 commit 5cf2495

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

.github/workflows/node-js-ci.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,17 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ${{matrix.os}}
14-
1514
strategy:
1615
matrix:
1716
os: [ubuntu-latest, macos-latest, windows-latest]
18-
node-version: [12.x, 14.x, 15.x]
17+
node-version: [12.x, 14.x]
1918

19+
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
2020
steps:
2121
- uses: actions/checkout@v2
22-
- name: Cache node modules
23-
uses: actions/cache@v2
24-
env:
25-
cache-name: cache-node-modules
26-
with:
27-
# npm cache files are stored in `~/.npm` on Linux/macOS
28-
path: ~/.npm
29-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
30-
restore-keys: |
31-
${{ runner.os }}-build-${{ env.cache-name }}-
32-
${{ runner.os }}-build-
33-
${{ runner.os }}-
34-
3522
- name: Test
36-
uses: actions/setup-node@v1
23+
uses: actions/setup-node@v2.1.5
3724
with:
3825
node-version: ${{ matrix.node-version }}
39-
4026
- run: npm install
4127
- run: npm test

0 commit comments

Comments
 (0)