Repository navigation
fix(release): publish with Automation token and keep npm provenance - #30
Merged
Merged
Conversation
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]>
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]>
Co-authored-by: RedStar <[email protected]>
RedStar071
marked this pull request as ready for review
August 2, 2026 19:59
4 of 11 tasks
7 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Publishes were failing with
ERR_PNPM_OTP_NON_INTERACTIVE(CI) / misleadingE404onPUT(local OTP). The first iteration droppedpublishConfig.provenance— that was wrong: we keep provenance, same outcome asskyra-project/archid-components(packages land on npm with Sigstore attestations).archid does this with:
NPM_PUBLISH_TOKEN)id-token: writeyarn npm publish --provenance)Changes
publishConfig.provenance: trueon both packagesrelease.ymltosecrets.NPM_PUBLISH_TOKENas bothNPM_TOKEN(changesets/action) andNODE_AUTH_TOKEN(setup-node / pnpm)NPM_CONFIG_PROVENANCE: trueon publish jobs (belt-and-suspenders withpublishConfig).changeset/README.mdMaintainer action required
Create/update the repo secret
NPM_PUBLISH_TOKENas 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
releaseworkflow onmain(or merge this and let the next push retry unpublished1.1.2/2.0.0).Prefer CI for releases so provenance is attached. Local
changeset publishwith provenance cannot mint attestations.Test plan
publishConfig.provenancepresent on both packagesNPM_PUBLISH_TOKENAutomation secret configured on the reporeleaseworkflow publishes@wolfstar/[email protected]and@wolfstar/[email protected]with provenance on npmNeed help on this PR? Tag
@codesmith-botwith 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.
What T-Rex did
Reviews (3): Last reviewed commit: "style(ci): remove explanatory comments f..." | Re-trigger Greptile