Skip to content

Commit 9452666

Browse files
committed
chore: switch to pnpm and update node versions
1 parent 67e57a0 commit 9452666

File tree

5 files changed

+611
-676
lines changed

5 files changed

+611
-676
lines changed

.github/workflows/node.js.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,23 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [14.x, 16.x, 18.x]
19+
node-version: [20.x, 22.x, 24.x, 25.x]
2020
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
24+
- name: Enable Corepack
25+
run: corepack enable
2426
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2628
with:
2729
node-version: ${{ matrix.node-version }}
28-
cache: 'npm'
29-
- run: npm ci
30-
- name: Archive npm failure logs
31-
uses: actions/upload-artifact@v3
30+
cache: 'pnpm'
31+
- run: pnpm install --frozen-lockfile
32+
- name: Archive pnpm failure logs
33+
uses: actions/upload-artifact@v4
3234
if: failure()
3335
with:
34-
name: npm-logs
35-
path: ~/.npm/_logs
36-
- run: npm test
36+
name: pnpm-logs-${{ matrix.node-version }}
37+
path: ~/.local/share/pnpm/store
38+
- run: pnpm test

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
logs
33
*.log
44
npm-debug.log*
5+
pnpm-debug.log*
56
yarn-debug.log*
67
yarn-error.log*
78
lerna-debug.log*
@@ -102,3 +103,6 @@ dist
102103

103104
# TernJS port file
104105
.tern-port
106+
107+
# Local files
108+
*.local.*

0 commit comments

Comments
 (0)