File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 18
18
- .eslintrc.cjs
19
19
# In case something like eslint or tsc or prettier upgrades
20
20
- ' package-lock.json'
21
+ # In case one of the script definitions changed
22
+ - ' package.json'
21
23
# Ultimately, for debugging this workflow itself
22
24
- .github/workflows/code-lint.yml
23
25
@@ -37,14 +39,20 @@ jobs:
37
39
- name : Check out repo
38
40
uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
39
41
42
+ - name : Cache node_modules
43
+ uses : actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
44
+ with :
45
+ path : node_modules
46
+ key : ${{ runner.os }}-node_modules-${{ hashFiles('package*.json') }}
47
+
40
48
- name : Setup node
41
49
uses : actions/setup-node@8c91899e586c5b171469028077307d293428b516
42
50
with :
43
51
node-version : ' 16.17.0'
44
52
cache : npm
45
53
46
54
- name : Install dependencies
47
- run : npm ci
55
+ run : npm install --prefer-offline --no-audit --ignore-scripts
48
56
49
57
- name : Run linter
50
58
run : npm run lint
You can’t perform that action at this time.
0 commit comments