Skip to content

fix(ci): CI-safe npm publish on release#57

Merged
lakhansamani merged 1 commit into
mainfrom
fix/ci-safe-npm-publish
Jul 11, 2026
Merged

fix(ci): CI-safe npm publish on release#57
lakhansamani merged 1 commit into
mainfrom
fix/ci-safe-npm-publish

Conversation

@lakhansamani

Copy link
Copy Markdown
Contributor

The release workflow could never auto-publish: it called make publish-rc/make publish, which are interactive (a read -p "Continue? (y/N)" prompt) and also re-do commit/tag/push. In CI there's no TTY, so the prompt defaults to No and the publish is cancelled (this is why the v2.2.0-rc.0 release run failed). This publishes directly, routing -rc./-beta. tags to the rc/beta dist-tag so a prerelease never lands on latest.

Second, separate blocker (needs a repo admin — I can't do it): the NPM_TOKEN secret is not set in this repo. The v2.2.0-rc.0 release run showed NODE_AUTH_TOKEN: blank (the authorizer-js repo has it and published fine). Set NPM_TOKEN in repo Settings → Secrets, then re-run the release for tag v2.2.0-rc.0 (or re-push the tag) and it will publish 2.2.0-rc.0 to the rc dist-tag.

Interim: a maintainer can publish now with npm ci && npm run build && npm publish --tag rc --access public locally (version + tag are already on main).

…targets

release.yml called `make publish-rc`/`make publish`, which prompt for
confirmation and re-run commit/tag/push — fine for a human running the
whole release locally, but they cancel in CI (no TTY), so tag-triggered
releases never published. Publish directly, routing -rc./-beta. tags to
the matching npm dist-tag (never latest). NOTE: also requires the
NPM_TOKEN repo secret to be set (currently unset — see PR description).
@lakhansamani
lakhansamani merged commit 07811b9 into main Jul 11, 2026
4 of 5 checks passed
@lakhansamani
lakhansamani deleted the fix/ci-safe-npm-publish branch July 11, 2026 10:06
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.

1 participant