File tree Expand file tree Collapse file tree 2 files changed +6
-45
lines changed Expand file tree Collapse file tree 2 files changed +6
-45
lines changed Original file line number Diff line number Diff line change 13
13
with :
14
14
node-version : " lts/*"
15
15
cache : ' npm'
16
- - name : Create Checksum of package.json
17
- run : echo PACKAGE_CHECKSUM="$(shasum package.json | awk '{ print $1 }')" >> "$GITHUB_ENV"
18
- - name : Restore Cache
19
- uses : actions/cache/restore@v4
20
- with :
21
- path : ./node_modules
22
- key : v1-dependencies-${{ env.PACKAGE_CHECKSUM }}
23
- - name : Install Dependencies
24
- run : npm install
25
- - name : Save Cache
26
- uses : actions/cache/save@v4
27
- id : cache
28
- with :
29
- path : ./node_modules
30
- key : v1-dependencies-${{ env.PACKAGE_CHECKSUM }}
16
+ - name : install dependencies
17
+ run : npm ci
31
18
- name : lint javascript
32
19
run : npm run lint
33
20
test :
56
43
with :
57
44
node-version : " lts/*"
58
45
cache : ' npm'
59
- - name : Create Checksum of package.json
60
- run : echo PACKAGE_CHECKSUM="$(shasum package.json | awk '{ print $1 }')" >> "$GITHUB_ENV"
61
- - name : Restore Cache
62
- uses : actions/cache/restore@v4
63
- with :
64
- path : ./node_modules
65
- key : v1-dependencies-${{ env.PACKAGE_CHECKSUM }}
66
- - name : Install Dependencies
67
- run : npm install
68
- - name : Save Cache
69
- uses : actions/cache/save@v4
70
- id : cache
71
- with :
72
- path : ./node_modules
73
- key : v1-dependencies-${{ env.PACKAGE_CHECKSUM }}
46
+ - name : install dependencies
47
+ run : npm ci
74
48
- name : run tests
75
49
run : npm test
76
50
deploy_dev :
Original file line number Diff line number Diff line change 46
46
with :
47
47
node-version : " lts/*"
48
48
cache : ' npm'
49
- - name : Create Checksum of package.json
50
- run : echo PACKAGE_CHECKSUM="$(shasum package.json | awk '{ print $1 }')" >> "$GITHUB_ENV"
51
- - name : Restore Cache
52
- uses : actions/cache/restore@v4
53
- with :
54
- path : ./node_modules
55
- key : v1-dependencies-${{ env.PACKAGE_CHECKSUM }}
56
- - name : Install Dependencies
57
- run : npm install
58
- - name : Save Cache
59
- uses : actions/cache/save@v4
60
- id : cache
61
- with :
62
- path : ./node_modules
63
- key : v1-dependencies-${{ env.PACKAGE_CHECKSUM }}
49
+ - name : install dependencies
50
+ run : npm ci
64
51
- name : Replace env vars in manifest.yml file
65
52
run : |
66
53
sudo apt-get update
You can’t perform that action at this time.
0 commit comments