Skip to content

Commit a2984ca

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 30c9708 commit a2984ca

File tree

7 files changed

+498
-711
lines changed

7 files changed

+498
-711
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
1820
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
1921
with:
20-
cache: "npm"
22+
cache: 'pnpm'
2123
node-version: "24"
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

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,18 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
17+
- name: Install pnpm
18+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
1719
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
1820
with:
1921
node-version: "24"
2022
registry-url: "https://registry.npmjs.org"
2123

2224
- name: Install dependencies
23-
run: npm ci
25+
run: pnpm install --frozen-lockfile
2426

2527
- name: Build code
2628
run: |
27-
npm run build
29+
pnpm run build
2830
29-
- run: npm publish --access public
31+
- run: pnpm publish --access public

.github/workflows/regen.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,20 @@ jobs:
2222
permission-pull-requests: write
2323
- name: Checkout
2424
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
25+
- name: Install pnpm
26+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
2527
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
2628
with:
27-
cache: "npm"
29+
cache: 'pnpm'
2830
node-version: "24"
2931

3032
- name: Install dependencies
31-
run: npm ci
33+
run: pnpm install --frozen-lockfile
3234

3335
- name: Generate code
3436
run: |
35-
npm run proto-clone
36-
npm run proto-all
37+
pnpm run proto-clone
38+
pnpm run proto-all
3739
3840
- name: Create Pull Request
3941
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8

0 commit comments

Comments
 (0)