Skip to content

fix: print workspace package tags from publish:trusted - #2302

Open
princerajpoot20 wants to merge 5 commits into
asyncapi:masterfrom
princerajpoot20:update-release-pipeline
Open

princerajpoot20 wants to merge 5 commits into
asyncapi:masterfrom
princerajpoot20:update-release-pipeline

Conversation

@princerajpoot20

@princerajpoot20 princerajpoot20 commented Sep 20, 2026

Copy link
Copy Markdown
Member

Before merge:

on npm, @asyncapi/optimizer Trusted Publisher should be repo asyncapi/cli and workflow release-with-changesets.yml.

Why

changesets/action reads lines like New tag: @asyncapi/cli@6.2.0. That text used to live in an npm script in package.json. npm prints the script before it runs, so the action saw New tag: $PACKAGE_NAME@... and crashed. The npm publish step never ran.

This PR also sits on master after turbo was bumped 1 → 2. Turbo 2 needs a packageManager field to see npm workspaces.

What changed

  • Moved tag/release helper into scripts/publish-trusted.js. It prints one New tag: line per unpublished workspace package. npm publish is still the next workflow step (changeset publish).
  • Set "packageManager": "npm@11.6.2" so turbo 2 can resolve workspaces.

Related asyncapi/optimizer#306

@changeset-bot

changeset-bot Bot commented Sep 20, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: cc12ca4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Comment thread scripts/publish-trusted.js Fixed
Comment thread scripts/publish-trusted.js Fixed
Comment thread scripts/publish-trusted.js Fixed
Comment thread scripts/publish-trusted.js Fixed
Comment thread scripts/publish-trusted.js Fixed
Comment thread scripts/publish-trusted.js Fixed
@sonarqubecloud

Copy link
Copy Markdown

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

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

2 participants