Skip to content

Commit f757717

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 b400e55 commit f757717

File tree

8 files changed

+52027
-20414
lines changed

8 files changed

+52027
-20414
lines changed

.github/workflows/prepare.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ jobs:
2020
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2121
with:
2222
token: ${{ steps.app-token.outputs.token }}
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5
2325
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
2426
with:
2527
node-version: "lts/*"
26-
cache: "npm"
28+
cache: 'pnpm'
2729
- name: Install dependencies
28-
run: npm ci
30+
run: pnpm install --frozen-lockfile
2931
- uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7
3032
with:
3133
commit_message: "chore: Prepare dist"

.github/workflows/test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@ 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
- name: Use Node.js
1921
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
2022
with:
2123
node-version: "lts/*"
22-
cache: "npm"
24+
cache: 'pnpm'
2325
- name: Install Dependencies
24-
run: npm ci
26+
run: pnpm install --frozen-lockfile
2527

2628
- name: Run Linter
27-
run: npm run lint
29+
run: pnpm run lint
2830

2931
- name: Check Format
30-
run: npm run format:ci
32+
run: pnpm run format:ci
3133

3234
- name: Run Build
33-
run: npm run build
35+
run: pnpm run build

0 commit comments

Comments
 (0)