Skip to content

chore: automate npm publish and GitHub releases with Changesets - #216

Merged
retyui merged 1 commit into
masterfrom
chore/changesets-release
Nov 26, 2026
Merged

retyui merged 1 commit into
masterfrom
chore/changesets-release

Conversation

@retyui

@retyui retyui commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Automates npm publishing and GitHub releases with Changesets

How it works

  1. A PR that should ship includes a changeset, added with yarn changeset.
  2. When it is merged to master, the Release workflow opens or updates a "chore: version packages" PR. That PR bumps package.json and updates CHANGELOG.md.
  3. Merging that PR publishes to npm with provenance (changeset publish, which builds through prepack). It then creates a bare-version tag and GitHub release (for example 5.2.0, matching existing tags), with notes from CHANGELOG.md plus Full Changelog and npmfs diff links.

Changes

  • .changeset/config.json: single package, baseBranch: master, changelog via @changesets/changelog-github.
  • .github/workflows/release.yml: new release workflow.
  • package.json: changeset, version-packages and release scripts, plus the @changesets/cli and @changesets/changelog-github dev dependencies.

Required repo / npm setup before the first release

  • npm Trusted Publishing configured for @react-native-community/image-editor (GitHub Actions, repo callstack/react-native-image-editor, workflow release.yml). The other option is an NPM_TOKEN secret passed to the publish step.
  • Settings → Actions → General → "Allow GitHub Actions to create and approve pull requests" enabled.

@retyui
retyui merged commit f010446 into master Nov 26, 2026
8 checks passed
@retyui
retyui deleted the chore/changesets-release branch November 26, 2026 10:24
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