Repository navigation
Fix CI: Migrate from npm to pnpm for workspace monorepo #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,23 +22,28 @@ jobs: | |
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: 9 | ||
|
|
||
| - name: Setup Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
| cache: 'npm' | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
| run: pnpm install --frozen-lockfile | ||
|
Comment on lines
+25
to
+37
|
||
|
|
||
| - name: Run linter | ||
| run: npm run lint | ||
| run: pnpm run lint | ||
|
|
||
| - name: Build project | ||
| run: npm run build | ||
| run: pnpm run build | ||
|
|
||
| - name: Run tests | ||
| run: npm test | ||
| run: pnpm test | ||
|
Comment on lines
+40
to
+46
|
||
|
|
||
| - name: Upload build artifacts | ||
| if: matrix.node-version == '20.x' | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -42,6 +42,6 @@ | |||||
| }, | ||||||
| "engines": { | ||||||
| "node": ">=18.0.0", | ||||||
| "pnpm": ">=8.0.0" | ||||||
| "pnpm": ">=9.0.0" | ||||||
|
||||||
| "pnpm": ">=9.0.0" | |
| "pnpm": ">=8.0.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR updates the CI workflow to use pnpm, but the repository still contains package-lock.json (9951 lines) which is npm's lockfile. This file is incompatible with pnpm and should be removed since pnpm-lock.yaml is now the authoritative lockfile. Additionally, CONTRIBUTING.md still references npm commands throughout (lines 10, 23, 35, 41, 47, 53) instead of pnpm, which will confuse contributors and lead them to use the wrong package manager.