File tree Expand file tree Collapse file tree 2 files changed +6
-29
lines changed Expand file tree Collapse file tree 2 files changed +6
-29
lines changed Original file line number Diff line number Diff line change @@ -14,22 +14,11 @@ jobs:
14
14
name : Build & Test
15
15
runs-on : ubuntu-latest
16
16
steps :
17
- - uses : actions/checkout@v3
18
- - uses : actions/setup-node@v3
17
+ - uses : actions/checkout@v4
18
+ - uses : actions/setup-node@v4
19
19
with :
20
20
node-version : 18
21
- - name : Cache node modules
22
- uses : actions/cache@v3
23
- env :
24
- cache-name : cache-node-modules
25
- with :
26
- path : ~/.npm
27
- # This uses the same name as the build-action so we can share the caches.
28
- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
29
- restore-keys : |
30
- ${{ runner.os }}-build-${{ env.cache-name }}-
31
- ${{ runner.os }}-build-
32
- ${{ runner.os }}-
21
+ cache : npm
33
22
- run : npm ci
34
23
- name : test
35
24
# Not using `npm test` since it rebuilds source which npm ci has already done
Original file line number Diff line number Diff line change @@ -16,28 +16,16 @@ jobs:
16
16
pull-requests : write
17
17
steps :
18
18
- name : Checkout Repo
19
- uses : actions/checkout@v3
19
+ uses : actions/checkout@v4
20
20
with :
21
21
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
22
22
fetch-depth : 0
23
23
24
24
- name : Setup Node.js 18.x
25
- uses : actions/setup-node@v3
25
+ uses : actions/setup-node@v4
26
26
with :
27
27
node-version : 18
28
-
29
- - name : Cache node modules
30
- uses : actions/cache@v3
31
- env :
32
- cache-name : cache-node-modules
33
- with :
34
- path : ~/.npm
35
- # This uses the same name as the build-action so we can share the caches.
36
- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
37
- restore-keys : |
38
- ${{ runner.os }}-build-${{ env.cache-name }}-
39
- ${{ runner.os }}-build-
40
- ${{ runner.os }}-
28
+ cache : npm
41
29
42
30
- name : Install Dependencies
43
31
run : npm ci
You can’t perform that action at this time.
0 commit comments