Skip to content

Commit 82af0b3

Browse files
authored
Upgrade Node.js to version 20 and enhance caching
Updated Node.js version to 20 and improved cache handling for lockfiles.
1 parent 4ebe434 commit 82af0b3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@ jobs:
1717
- name: Set up Node.js
1818
uses: actions/setup-node@v4
1919
with:
20-
node-version: '18'
20+
node-version: '20'
2121
cache: 'npm'
22-
# optional: if your lockfile lives in a subdirectory, change this to e.g. "subdir/package-lock.json"
23-
cache-dependency-path: package-lock.json
22+
# If your repo is a monorepo or lockfiles live in subdirectories, list them here
23+
cache-dependency-path: |
24+
package-lock.json
25+
**/package-lock.json
26+
pnpm-lock.yaml
27+
**/pnpm-lock.yaml
28+
yarn.lock
29+
**/yarn.lock
2430
2531
- name: Set up Python
2632
uses: actions/setup-python@v4
@@ -55,7 +61,7 @@ jobs:
5561
echo "Found npm-shrinkwrap.json -> running: npm ci"
5662
npm ci
5763
elif [ -f pnpm-lock.yaml ]; then
58-
echo "Found pnpm-lock.yaml -> running: pnpm install --frozen-lockfile"
64+
echo "Found pnpm-lock.yaml -> installing pnpm and running: pnpm install --frozen-lockfile"
5965
npm i -g pnpm@latest || true
6066
pnpm install --frozen-lockfile || pnpm install
6167
elif [ -f yarn.lock ]; then

0 commit comments

Comments
 (0)