Skip to content

fix: configure npm publish for scoped package#19

Merged
Jing-yilin merged 1 commit into
mainfrom
hotfix/release-publish
Mar 25, 2026
Merged

fix: configure npm publish for scoped package#19
Jing-yilin merged 1 commit into
mainfrom
hotfix/release-publish

Conversation

@Jing-yilin
Copy link
Copy Markdown
Contributor

Fixes release workflow 404 on npm publish. Adds publishConfig.access=public and passes NPM_TOKEN as NODE_AUTH_TOKEN. Requires NPM_TOKEN secret in repo settings.

- Add publishConfig.access=public to package.json (scoped packages
  default to restricted, causing 404 on first publish)
- Pass NPM_TOKEN as NODE_AUTH_TOKEN to the changesets/action step
  so npm publish authenticates against registry.npmjs.org

Requires NPM_TOKEN secret to be set in repo settings.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@Jing-yilin Jing-yilin merged commit 55c7d6c into main Mar 25, 2026
1 check failed
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