Skip to content

Conversation

bhouston
Copy link
Member

@bhouston bhouston commented Mar 11, 2025

Fix incorrect publishing of workspace references in package.jsons

This PR resolves issue #198 by implementing the @anolilab/semantic-release-pnpm plugin to properly handle pnpm workspace references during the release process.

Problem

When using the standard semantic-release npm plugin, workspace references in package.json (like "mycoder-agent": "workspace:*") were being published as-is instead of being resolved to proper version numbers. This happens because semantic-release by default uses npm to do the publishing, which doesn't properly handle pnpm workspace references.

Solution

  • Added @anolilab/semantic-release-pnpm as a dev dependency to the root package.json
  • Updated .releaserc.json files in both packages (agent and cli) to use @anolilab/semantic-release-pnpm instead of @semantic-release/npm

References

Closes #198

@bhouston bhouston merged commit 77705bc into main Mar 11, 2025
1 check passed
@bhouston bhouston deleted the fix/issue-198-semantic-release-pnpm branch March 12, 2025 02:07
Copy link

🎉 This PR is included in version mycoder-agent-v1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version mycoder-v1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix incorrect publishing of workspace reference in package.jsons in release.yml via semantic-release

1 participant