Skip to content

Commit 8114433

Browse files
committed
⚡ chore: migrate from yarn to pnpm package manager
- Update CI workflow to use pnpm instead of yarn - Upgrade GitHub Actions versions (checkout@v7, setup-node@v7) - Add pnpm setup step with version 10.12.4 and caching - Replace all yarn commands with pnpm equivalents - Add packageManager field to package.json - Generate pnpm-lock.yaml lockfile
1 parent ef20852 commit 8114433

4 files changed

Lines changed: 9752 additions & 7094 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,27 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Checkout Repository
9-
uses: actions/checkout@v2
9+
uses: actions/checkout@v7
1010

1111
- name: Setup Node
12-
uses: actions/setup-node@v1
12+
uses: actions/setup-node@v7
1313
with:
1414
node-version: 20.x
1515

16+
- name: Setup pnpm
17+
uses: pnpm/action-setup@v6
18+
with:
19+
version: 10.12.4
20+
cache: true
21+
1622
- name: Install dependencies
17-
run: yarn install --frozen-lockfile
23+
run: pnpm install --frozen-lockfile
1824

1925
- name: Linting
20-
run: yarn lint
26+
run: pnpm lint
2127

2228
- name: Test
23-
run: yarn test --coverage=false
29+
run: pnpm test --coverage=false
2430

2531
- name: Build
26-
run: yarn build
32+
run: pnpm build

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@
2828
},
2929
"homepage": "https://profile-readme-generator.com",
3030
"private": true,
31+
"packageManager": "pnpm@10.12.4",
3132
"scripts": {
3233
"dev": "next",
3334
"build": "next build",
3435
"start": "next start",
3536
"lint": "eslint src",
3637
"test": "vitest",
37-
"analyze": "ANALYZE=true yarn build"
38+
"analyze": "ANALYZE=true pnpm build"
3839
},
3940
"dependencies": {
4041
"@radix-ui/react-context-menu": "^2.2.15",

0 commit comments

Comments
 (0)