fix: replace pnpm/action-setup@v6 with corepack in all CI workflows#1219
Merged
fix: replace pnpm/action-setup@v6 with corepack in all CI workflows#1219
Conversation
All CI workflows updated to use corepack instead of pnpm/action-setup@v6: - ci.yml (4 jobs) - lint.yml - release.yml - changeset-release.yml - performance-budget.yml - shadcn-check.yml - storybook-deploy.yml - storybook-tests.yml - dependabot-auto-merge.yml Corepack reads the exact packageManager field from package.json with SHA verification, ensuring consistent pnpm version across local dev and CI. Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/e2dacbe8-6e60-47e1-9acd-5416a058077e Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Claude created this pull request from a session on behalf of
hotlong
April 13, 2026 13:11
View session
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates GitHub Actions CI workflows to stop using pnpm/action-setup@v6 (which is causing lockfile parse failures) and instead rely on Node’s Corepack to provision the repo-pinned pnpm version via packageManager in package.json.
Changes:
- Replaced
pnpm/action-setup@v6withcorepack enableacross the affected workflows. - Added a
pnpm --versionverification step after enabling Corepack.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/ci.yml | Switches pnpm setup in all CI jobs from pnpm/action-setup to Corepack + version verification. |
| .github/workflows/lint.yml | Replaces pnpm setup with Corepack + version verification. |
| .github/workflows/release.yml | Replaces pnpm setup with Corepack + version verification in release pipeline. |
| .github/workflows/changeset-release.yml | Replaces pnpm setup with Corepack + version verification for changesets release flow. |
| .github/workflows/performance-budget.yml | Replaces pnpm setup with Corepack + version verification for bundle analysis. |
| .github/workflows/shadcn-check.yml | Replaces pnpm setup with Corepack + version verification for shadcn sync checks. |
| .github/workflows/storybook-deploy.yml | Replaces pnpm setup with Corepack + version verification for Storybook build/deploy. |
| .github/workflows/storybook-tests.yml | Replaces pnpm setup with Corepack + version verification for Storybook CI tests. |
| .github/workflows/dependabot-auto-merge.yml | Replaces pnpm setup with Corepack + version verification for Dependabot automerge flow. |
Comment on lines
+24
to
+28
| - name: Enable Corepack | ||
| run: corepack enable | ||
|
|
||
| - name: Verify pnpm version | ||
| run: pnpm --version |
Comment on lines
+66
to
+70
| - name: Enable Corepack | ||
| run: corepack enable | ||
|
|
||
| - name: Verify pnpm version | ||
| run: pnpm --version |
Comment on lines
+122
to
+126
| - name: Enable Corepack | ||
| run: corepack enable | ||
|
|
||
| - name: Verify pnpm version | ||
| run: pnpm --version |
Comment on lines
+210
to
+216
| - name: Enable Corepack | ||
| if: steps.docs-changes.outputs.should_run == 'true' | ||
| uses: pnpm/action-setup@v6 | ||
| with: | ||
| version: 10.31.0 | ||
| run: corepack enable | ||
|
|
||
| - name: Verify pnpm version | ||
| if: steps.docs-changes.outputs.should_run == 'true' | ||
| run: pnpm --version |
Comment on lines
+24
to
+28
| - name: Enable Corepack | ||
| run: corepack enable | ||
|
|
||
| - name: Verify pnpm version | ||
| run: pnpm --version |
Comment on lines
+22
to
+26
| - name: Enable Corepack | ||
| run: corepack enable | ||
|
|
||
| - name: Verify pnpm version | ||
| run: pnpm --version |
Comment on lines
+35
to
+39
| - name: Enable Corepack | ||
| run: corepack enable | ||
|
|
||
| - name: Verify pnpm version | ||
| run: pnpm --version |
Comment on lines
+31
to
+35
| - name: Enable Corepack | ||
| run: corepack enable | ||
|
|
||
| - name: Verify pnpm version | ||
| run: pnpm --version |
Comment on lines
+34
to
+38
| - name: Enable Corepack | ||
| run: corepack enable | ||
|
|
||
| - name: Verify pnpm version | ||
| run: pnpm --version |
Comment on lines
+21
to
+25
| - name: Enable Corepack | ||
| run: corepack enable | ||
|
|
||
| - name: Verify pnpm version | ||
| run: pnpm --version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI workflows fail with
ERR_PNPM_BROKEN_LOCKFILEdue topnpm/action-setup@v6's npm-based self-installer misparsingthe lockfile. Applied the same fix used in framework#1122.Changes
Replaced
pnpm/action-setup@v6→corepack enableacross all 9 workflows:Updated workflows:
ci.yml(4 jobs: test, build, e2e, docs)lint.ymlrelease.ymlchangeset-release.ymlperformance-budget.ymlshadcn-check.ymlstorybook-deploy.ymlstorybook-tests.ymldependabot-auto-merge.ymlCorepack reads the
packageManagerfield frompackage.json(pnpm@10.31.0) with SHA-512 verification, ensuring identical binaries between local dev and CI environments.