mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
ci: enable caching of npm modules
Note: `npm ci` is always required because it's the npm cache that is cached, not the node_modules/ directory. Reference: https://github.com/actions/setup-node
This commit is contained in:
1
.github/workflows/build-examples.yml
vendored
1
.github/workflows/build-examples.yml
vendored
@@ -37,6 +37,7 @@ jobs:
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
|
||||
- name: Build ${{ matrix.example }}
|
||||
run: |
|
||||
|
||||
1
.github/workflows/ci-browser.yml
vendored
1
.github/workflows/ci-browser.yml
vendored
@@ -26,6 +26,7 @@ jobs:
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -55,6 +55,7 @@ jobs:
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
@@ -24,6 +24,7 @@ jobs:
|
||||
with:
|
||||
node-version: 24
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
cache: npm
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
Reference in New Issue
Block a user