Skip to content

Commit 71c85ee

Browse files
committed
chore: migrate from npm to pnpm
- Replace package-lock.json with pnpm-lock.yaml - Set packageManager to pnpm@10.23.0 - Add minimumReleaseAge: 10080 (7 days) for supply chain protection - Update CI workflows for pnpm
1 parent 5a88953 commit 71c85ee

File tree

6 files changed

+5313
-7533
lines changed

6 files changed

+5313
-7533
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,70 +17,78 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1919

20+
- name: Install pnpm
21+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
2022
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
2123
with:
2224
node-version: "24"
23-
cache: "npm"
25+
cache: 'pnpm'
2426

2527
- name: Install dependencies
26-
run: npm ci
28+
run: pnpm install --frozen-lockfile
2729

2830
- name: Build
2931
run: |
30-
npm run build
32+
pnpm run build
3133
3234
test:
3335
runs-on: ubuntu-latest
3436
steps:
3537
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3638

39+
- name: Install pnpm
40+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
3741
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
3842
with:
3943
node-version: "24"
40-
cache: "npm"
44+
cache: 'pnpm'
4145

4246
- name: Install dependencies
43-
run: npm ci
47+
run: pnpm install --frozen-lockfile
4448

4549
- # Required for the package command tests to work
4650
name: Set up Docker Buildx
4751
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
4852

4953
- name: Test
5054
run: |
51-
npm test
55+
pnpm test
5256
5357
lint:
5458
runs-on: ubuntu-latest
5559
steps:
5660
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
5761

62+
- name: Install pnpm
63+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
5864
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
5965

6066
with:
6167
node-version: "24"
62-
cache: "npm"
68+
cache: 'pnpm'
6369

6470
- name: Install dependencies
65-
run: npm ci
71+
run: pnpm install --frozen-lockfile
6672

6773
- name: Lint
6874
run: |
69-
npm run lint
75+
pnpm run lint
7076
7177
format:
7278
runs-on: ubuntu-latest
7379
steps:
7480
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
7581

82+
- name: Install pnpm
83+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
7684
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
7785
with:
7886
node-version: "24"
79-
cache: "npm"
87+
cache: 'pnpm'
8088

8189
- name: Install dependencies
82-
run: npm ci
90+
run: pnpm install --frozen-lockfile
8391

8492
- name: Format
8593
run: |
86-
npm run format:check
94+
pnpm run format:check

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,18 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
1717

18+
- name: Install pnpm
19+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
1820
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
1921
with:
2022
node-version: "24"
2123
registry-url: "https://registry.npmjs.org"
2224

2325
- name: Install dependencies
24-
run: npm ci
26+
run: pnpm install --frozen-lockfile
2527

2628
- name: Build code
2729
run: |
28-
npm run build
30+
pnpm run build
2931
30-
- run: npm publish --access public
32+
- run: pnpm publish --access public

0 commit comments

Comments
 (0)