Skip to content

Remove invalid yarn cache dir step from publish workflow#40

Merged
einari merged 2 commits intomainfrom
copilot/setup-trusted-publishing-npm
Mar 13, 2026
Merged

Remove invalid yarn cache dir step from publish workflow#40
einari merged 2 commits intomainfrom
copilot/setup-trusted-publishing-npm

Conversation

Copy link
Contributor

Copilot AI commented Mar 13, 2026

Yarn Berry 4.x does not support yarn cache dir — only yarn cache clean exists. The command outputs subcommand help text instead of a path, which is an invalid format for $GITHUB_OUTPUT, causing the entire publish-npm-packages job to fail immediately.

The step's output (steps.yarn-cache-dir-path.outputs.dir) was never referenced anywhere in the workflow — the actions/cache step already hardcodes .yarn/cache.

Removed

  • Get yarn cache directory path step from publish-npm-packages job — incompatible with Yarn 4.x and unused

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: einari <134365+einari@users.noreply.github.com>
Copilot AI changed the title [WIP] Add trusted publishing setup for NPM Remove invalid yarn cache dir step from publish workflow Mar 13, 2026
Copilot AI requested a review from einari March 13, 2026 15:12
@einari einari marked this pull request as ready for review March 13, 2026 16:55
@einari einari merged commit 33fe197 into main Mar 13, 2026
@einari einari deleted the copilot/setup-trusted-publishing-npm branch March 13, 2026 16:55
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.

2 participants