File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -47,23 +47,11 @@ jobs:
47
47
steps :
48
48
- uses : actions/checkout@v2
49
49
50
- - name : Cache node modules
51
- uses : actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4
52
- env :
53
- cache-name : cache-node-modules
50
+ - name : Install NodeJS
51
+ uses : actions/setup-node@v4
54
52
with :
55
- # npm cache files are stored in `~/.npm` on Linux/macOS
56
- path : ~/.npm
57
- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
58
- restore-keys : |
59
- ${{ runner.os }}-build-${{ env.cache-name }}-
60
- ${{ runner.os }}-build-
61
- ${{ runner.os }}-
62
-
63
- - name : Use Node.js 20.x
64
- uses : actions/setup-node@v1
65
- with :
66
- node-version : 20.x
53
+ node-version-file : ' .nvmrc'
54
+ cache : ' npm'
67
55
68
56
- name : Npm install and build
69
57
run : |
You can’t perform that action at this time.
0 commit comments