Skip to content

Commit 43585cc

Browse files
Add package-lock.json and enable npm cache in CI (#5693)
* Add package-lock.json to the repo for reproducible build * Enable the npm cache in CI
1 parent 1fd1530 commit 43585cc

File tree

3 files changed

+15368
-5
lines changed

3 files changed

+15368
-5
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ jobs:
2424
uses: actions/setup-node@v4
2525
with:
2626
node-version: ${{ matrix['node-version'] }}
27-
# Enabling the cache reduces the "Install dependencies" step by 1m30,
28-
# but you need package-lock.json in the repo.
29-
# cache: 'npm'
30-
# cache-dependency-path: 'package-lock.json'
27+
cache: 'npm'
28+
cache-dependency-path: 'package-lock.json'
3129

3230
- name: Install dependencies
3331
run: npm install

‎.gitignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ gh-pages/
88
karma.conf.js
99
node_modules
1010
npm-debug.log*
11-
package-lock.json

0 commit comments

Comments
 (0)