Skip to content

fix(release): publish with Automation token and keep npm provenance - #30

Merged
kodiakhq[bot] merged 4 commits into
mainfrom
cursor/fix-npm-trusted-publish-88f4
Aug 3, 2026
Merged

kodiakhq[bot] merged 4 commits into
mainfrom
cursor/fix-npm-trusted-publish-88f4

Conversation

@RedStar071

@RedStar071 RedStar071 commented Aug 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Publishes were failing with ERR_PNPM_OTP_NON_INTERACTIVE (CI) / misleading E404 on PUT (local OTP). The first iteration dropped publishConfig.provenance — that was wrong: we keep provenance, same outcome as skyra-project/archid-components (packages land on npm with Sigstore attestations).

archid does this with:

  • granular Automation token (NPM_PUBLISH_TOKEN)
  • id-token: write
  • explicit provenance at publish time (yarn npm publish --provenance)

Changes

  • Keep publishConfig.provenance: true on both packages
  • Wire release.yml to secrets.NPM_PUBLISH_TOKEN as both NPM_TOKEN (changesets/action) and NODE_AUTH_TOKEN (setup-node / pnpm)
  • Set NPM_CONFIG_PROVENANCE: true on publish jobs (belt-and-suspenders with publishConfig)
  • Document the Automation-token + provenance path in .changeset/README.md

Maintainer action required

Create/update the repo secret NPM_PUBLISH_TOKEN as an npm granular token with type Automation and publish access to @wolfstar/*. Classic tokens will keep failing with OTP errors.

Then merge and re-run the release workflow on main (or merge this and let the next push retry unpublished 1.1.2 / 2.0.0).

Prefer CI for releases so provenance is attached. Local changeset publish with provenance cannot mint attestations.

Test plan

  • publishConfig.provenance present on both packages
  • NPM_PUBLISH_TOKEN Automation secret configured on the repo
  • release workflow publishes @wolfstar/[email protected] and @wolfstar/[email protected] with provenance on npm
Open in Web Open in Cursor 

View with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is enabled.

Confidence Score: 5/5

The PR is safe to merge; no blocking failure remains.

The stable and snapshot publishing paths were checked without contacting npm and both receive the intended authentication and provenance configuration.

T-Rex T-Rex Logs

What T-Rex did

  • Compared the release publish configuration between origin/main and the PR change using an executable parser with network access disabled.
  • Observed that the baseline configuration exited with code 1 and reported four missing authentication/provenance checks.
  • Observed that the PR HEAD configuration exited with code 0 and reported RESULT=PASS checks=10 failures=0.
  • Tracked the checks path from pnpm run publish:snapshot and changesets/action → pnpm run publish to changeset publish, confirming the configured token, OIDC permission, provenance setting, and publishable-package configuration.
  • Validated configuration-only execution with NETWORK=disabled in the PR, showing no publish was invoked and no real tokens were used.

View all artifacts

T-Rex Ran code and verified through T-Rex

Reviews (3): Last reviewed commit: "style(ci): remove explanatory comments f..." | Re-trigger Greptile

Remove publishConfig.provenance (breaks local OTP publishes with a
misleading E404) and stop injecting classic NPM_TOKEN / setup-node
registry-url auth that fights OIDC and surfaces as
ERR_PNPM_OTP_NON_INTERACTIVE in CI. Document per-package Trusted
Publisher setup for wolfstar-project/plugins.

Co-authored-by: RedStar <[email protected]>
@wolfstarbot wolfstarbot added the packages:plugin-api Changes in plugin-api label Aug 2, 2026
RedStar071 and others added 2 commits August 2, 2026 19:37
Restore publishConfig.provenance and publish from CI with an Automation
NPM_PUBLISH_TOKEN plus id-token: write / NPM_CONFIG_PROVENANCE, matching
skyra-project/archid-components. Classic tokens caused OTP failures; do
not drop provenance to unblock local publishes.

Co-authored-by: RedStar <[email protected]>
@cursor cursor Bot changed the title fix(release): unblock npm publish via OIDC trusted publishing fix(release): publish with Automation token and keep npm provenance Aug 2, 2026
@wolfstarbot wolfstarbot removed the packages:plugin-api Changes in plugin-api label Aug 2, 2026
@RedStar071
RedStar071 marked this pull request as ready for review August 2, 2026 19:59
@RedStar071
RedStar071 requested a review from lorypelli August 2, 2026 20:03

@lorypelli lorypelli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kodiakhq
kodiakhq Bot merged commit 0b1c47f into main Aug 3, 2026
15 checks passed
@kodiakhq
kodiakhq Bot deleted the cursor/fix-npm-trusted-publish-88f4 branch August 3, 2026 05: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.

4 participants