Skip to content

ci: add npm release workflow via changesets#19

Merged
srsholmes merged 2 commits into
mainfrom
ci/npm-release
Mar 30, 2026
Merged

ci: add npm release workflow via changesets#19
srsholmes merged 2 commits into
mainfrom
ci/npm-release

Conversation

@srsholmes

Copy link
Copy Markdown
Owner

Summary

How it works

  1. PRs include changeset files (.changeset/*.md) describing what changed
  2. On merge to main, the workflow detects pending changesets and opens a "Version Packages" PR that bumps versions and updates CHANGELOG
  3. When that PR is merged, the workflow publishes to npm automatically

Setup required

Add an NPM_TOKEN secret to the repository settings (Settings > Secrets > Actions):

Test plan

  • Workflow syntax validated
  • Changeset config already present and correctly configured
  • pnpm release script already exists in root package.json
  • Package has publishConfig.access: "public" set

🤖 Generated with Claude Code

srsholmes and others added 2 commits March 30, 2026 12:54
Adds a GitHub Actions workflow that runs on merge to main:
- If changesets are pending, opens a "Version Packages" PR
- When that PR merges, publishes to npm automatically

Also replaces the stale changeset with one for the #16/#17 fixes.

Requires NPM_TOKEN secret to be configured in the repository.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replaces NPM_TOKEN secret with NPM_CONFIG_PROVENANCE=true for
tokenless publishing via OpenID Connect. No secret management needed.

Requires configuring trusted publisher on npmjs.com:
- Package settings > Trusted Publishers > Add
- Owner: srsholmes, Repo: vitest-react-native, Workflow: release.yml

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@srsholmes
srsholmes merged commit 7b50276 into main Mar 30, 2026
2 checks passed
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