Skip to content

fix(release): make npm publishing work again - #71

Merged
Hammond95 merged 3 commits into
mainfrom
fix/release-plugin-id
Sep 24, 2026
Merged

Hammond95 merged 3 commits into
mainfrom
fix/release-plugin-id

Conversation

@tembleking

@tembleking tembleking commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

No release since 1.3.2 (2024-09) has reached npm. The 1.4.1, 1.5.0 and 1.5.1 runs all created the GitHub release and then failed on publish, because backstage-cli package prepack requires backstage.pluginId (the check was already there in CLI 0.34.5). I generated the fields with backstage-cli repo fix --publish, and pluginId matches src/plugin.ts.

Publishing moves to npm trusted publishing (OIDC) instead of NPM_AUTH_TOKEN, since that token hasn't worked since 2024 and long-lived npm write tokens are being phased out. This requires npm publish because the yarn docs don't cover OIDC. npm now runs before the GitHub release, so a failed publish won't leave an orphan release behind.

This also refreshes yaml, qs and diff to patched versions, which covers Dependabot #59 and #44.

Before merging: add a trusted publisher for @sysdig/backstage-plugin-sysdig on npmjs.com (repo sysdiglabs/backstage-plugin-sysdig, workflow release.yaml). Without it the publish fails.

The version goes to 1.5.2 so the release workflow triggers.

Newer backstage-cli refuses to prepack plugin packages without
backstage.pluginId, which made the 1.5.1 release fail on npm publish.
Bumps to 1.5.2 since the release workflow only runs on version changes.
mateobur
mateobur previously approved these changes Sep 24, 2026
Drops the long-lived NPM_AUTH_TOKEN in favor of OIDC, which needs npm
(not yarn) >= 11.5.1. Publishes to npm before creating the GitHub release
so a failed publish no longer leaves an orphan release behind.
@tembleking tembleking changed the title fix(release): add backstage.pluginId so npm publish passes prepack fix(release): make npm publishing work again Sep 24, 2026
@Hammond95
Hammond95 merged commit d374ec7 into main Sep 24, 2026
2 checks passed
@Hammond95
Hammond95 deleted the fix/release-plugin-id branch September 24, 2026 16:14
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.

3 participants