Skip to content

Fix pnpm setup in publish workflow - #9

Merged
thebuilder merged 1 commit into
mainfrom
feat/fix-pnpm-workflow-setup
Jul 18, 2026
Merged

Fix pnpm setup in publish workflow#9
thebuilder merged 1 commit into
mainfrom
feat/fix-pnpm-workflow-setup

Conversation

@thebuilder

Copy link
Copy Markdown
Owner

Summary

  • remove pnpm caching from actions/setup-node
  • enable the Corepack shim before invoking pnpm
  • run the repository-pinned package manager as plain pnpm in GitHub Actions

Root cause

actions/setup-node initializes its package-manager cache during the setup step. With cache: pnpm, it attempted to execute pnpm before the following install step had run corepack enable, causing the release workflow to fail with Unable to locate executable file: pnpm.

Impact

The publish workflow can now complete Node setup and install the backoffice dependencies using the pnpm version pinned by the repository's packageManager field. The optional setup-node dependency cache is disabled.

Verification

  • parsed the workflow as valid YAML
  • verified corepack enable exposes plain pnpm
  • verified the final workflow diff is limited to the setup and install commands
  • confirmed the original failure in GitHub Actions run 29637969266

@thebuilder
thebuilder marked this pull request as ready for review July 18, 2026 08:50
@thebuilder
thebuilder merged commit 92b8763 into main Jul 18, 2026
3 checks passed
@thebuilder
thebuilder deleted the feat/fix-pnpm-workflow-setup branch July 18, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant