Skip to content

Commit 5c856b3

Browse files
killaguclaude
andcommitted
fix(ci): run \pnpm install\ before \pnpm -r pack\ so workspace deps resolve
\`pnpm -r pack\` needs pnpm's own \`node_modules\` symlink layout to resolve \`workspace:*\` versions; otherwise it errors with \`ERR_PNPM_CANNOT_RESOLVE_WORKSPACE_PROTOCOL\`. Run \`pnpm install --no-frozen-lockfile --ignore-scripts\` first — the packages are already in the global utoo store, so this is cheap. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c522197 commit 5c856b3

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/e2e-test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,15 @@ jobs:
173173
# `pnpm -r pack` resolves workspace:/catalog: deps in the emitted
174174
# manifests, which `ut pm-pack` does not yet do. pnpm refuses to
175175
# run when `packageManager` points at another tool, so disable
176-
# that strict check for just this step.
176+
# that strict check for just this step. pnpm needs its own
177+
# node_modules layout to resolve `workspace:` versions, so run
178+
# `pnpm install --no-frozen-lockfile` first (cheap on top of the
179+
# ut install since the deps are already in the global store).
177180
env:
178181
NPM_CONFIG_PACKAGE_MANAGER_STRICT: 'false'
179-
run: pnpm -r pack
182+
run: |
183+
pnpm install --no-frozen-lockfile --ignore-scripts
184+
pnpm -r pack
180185
181186
- name: Override dependencies from tgz in ${{ matrix.project.name }}
182187
working-directory: ecosystem-ci/${{ matrix.project.name }}

0 commit comments

Comments
 (0)