Repository navigation
chore: automate npm releases with release-it and Trusted Publishing - #173
Merged
Merged
Conversation
Closes #172 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
release-it 21 requires Node ^22.22.2, which Yarn 1 enforces as a hard error. It only runs in CI, so don't fail contributor installs on it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 24, 2026
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.
Closes #172
Automates npm releases with release-it, mirroring react-native-menu/menu.
Changes
package.jsonrelease-it+@release-it/conventional-changelog(conventionalcommitspreset) and areleasescriptchore: release ${version}commit,v${version}tag (matches existing tags), GitHub release,npm.skipChecks(no long-lived token under OIDC)repository/homepage/bugsnow point atreact-native-progress-view/progress-view. npm rejects a provenance-signed publish whoserepository.urldoesn't match the publishing repo..github/workflows/release.yml(new): runs afterBuildsucceeds on a push tomaster, and publishes via npm Trusted Publishing (OIDC, npm ≥ 11.5.1, provenance attached, noNPM_TOKEN). It skips when master moved past the validated commit, when there's no releasable conventional commit, and on its ownchore: releasecommit.ci.yml:Buildalso runs on push tomasterand onworkflow_dispatch, so the release workflow has a run to follow.Differences from menu
yarn install --pure-lockfile:yarn.lockis Berry format whilepackageManagerpins Yarn 1, so a plain install would rewrite the lockfile and release-it would refuse a dirty tree.workflow_dispatchtakes anincrementinput (auto/patch/minor/major) and skips the conventional-commit guard. No commit sincev1.5.0is conventional, so withauto, release-it reports "No new version to release" (checked with a local dry-run). Shipping Restore New Architecture support with react-native >= 0.76 #155 / Fix "fnv1a.h" not found when using the new architecture #165 needs a manual patch run.Verified locally
release-it --ci --dry-run→No new version to releaserelease-it patch --ci --dry-run→1.5.0...1.5.1,npm publish --dry-runOKyarn install --pure-lockfileleaves the tree clean,yarn lintpasses, actionlint clean forrelease.ymlBefore the first release (outside this PR)
masterrequires 1 approving review, sogithub-actions[bot]pushing the release commit and tag will be rejected. Relax the rule or add a bypass for GitHub Actions.🤖 Generated with Claude Code