Skip to content

Commit 75fa5ec

Browse files
committed
👷 use cache from npm
👷 change node-version >= 18
1 parent e43c92a commit 75fa5ec

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ jobs:
55
Ubuntu:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v1
9-
- uses: actions/setup-node@v1
10-
with:
11-
node-version: 16.x
12-
- uses: actions/cache@v3
8+
- name: Checkout source code.
9+
uses: actions/checkout@v3
10+
11+
- name: Install Node.js
12+
uses: actions/setup-node@v3
1313
with:
14-
path: ~/.npm
15-
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
16-
restore-keys: |
17-
${{ runner.os }}-node-
14+
node-version: 18.x
15+
cache: 'npm'
16+
1817
- run: npm install
1918
- run: npm run build
2019
- run: npm run test

0 commit comments

Comments
 (0)