File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 2222 name : Frontend linting / readiness checks
2323 # Defines the type of runner the job runs on
2424 runs-on : ubuntu-latest
25+ permissions :
26+ contents : read
2527 steps :
2628 - name : Checkout to the repository
2729 uses : actions/checkout@v3
7678 runs-on : ubuntu-latest
7779 permissions :
7880 contents : read
79- id-token : write
8081 steps :
8182 - name : Checkout branch
8283 uses : actions/checkout@v3.1.0
9596 uses : actions/setup-node@v3
9697 with :
9798 node-version : ' 20.12.2'
99+ - name : Cache node modules
100+ id : cache-npm
101+ uses : actions/cache@v3
102+ env :
103+ cache-name : cache-node-modules
104+ with :
105+ # npm cache files are stored in `~/.npm` on Linux/macOS
106+ path : ~/.npm
107+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
108+ restore-keys : |
109+ ${{ runner.os }}-build-${{ env.cache-name }}-
110+ ${{ runner.os }}-build-
111+ ${{ runner.os }}-
98112 - name : Install frontend dependencies for pre-commit
99113 run : npm ci
100114 working-directory : ./frontend
@@ -107,7 +121,6 @@ jobs:
107121 runs-on : ubuntu-latest
108122 permissions :
109123 contents : read
110- id-token : write
111124 steps :
112125 - name : Checkout branch
113126 uses : actions/checkout@v3.1.0
You can’t perform that action at this time.
0 commit comments