Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@3/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "callstack/react-native-image-editor" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
64 changes: 64 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Release

on:
push:
branches: [master]

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
contents: write # push version commits / tags, create GitHub releases
pull-requests: write # open the "Version Packages" PR
id-token: write # npm trusted publishing + provenance

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- run: corepack enable

- uses: actions/setup-node@v7
with:
node-version: 24
cache: yarn

- run: yarn install --immutable

- name: Create release PR or publish to npm
id: changesets
uses: changesets/action@v2
with:
version-script: yarn version-packages
publish-script: yarn release
commit-message: 'chore: version packages'
pr-title: 'chore: version packages'
# Tags in this repo have no `v` prefix (e.g. `5.1.0`), so the tag +
# GitHub release are created in the next step instead
create-github-releases: false
push-git-tags: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
YARN_NPM_PUBLISH_PROVENANCE: 'true'

- name: Create GitHub release
if: steps.changesets.outputs.published == 'true'
run: |
VERSION=$(node -p "require('./package.json').version")
PKG=$(node -p "require('./package.json').name")
PREV=$(gh release view --json tagName -q .tagName)
REPO_URL="https://github.com/$GITHUB_REPOSITORY"
{
echo "## What's Changed"
sed -n "/^## $VERSION\$/,/^## /{/^## /!p;}" CHANGELOG.md | sed 's/^### /#### /'
echo
echo "---"
echo
echo "**Full Changelog**: $REPO_URL/compare/$PREV...$VERSION"
echo "**Npm diff**: [\`$PREV...$VERSION\`](https://npmfs.com/compare/$PKG/$PREV/$VERSION/)"
} > release-notes.md
gh release create "$VERSION" --target "$GITHUB_SHA" --title "Release $VERSION" --notes-file release-notes.md
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@
"lint:android": "./android/gradlew -p android spotlessCheck --quiet",
"format:android": "./android/gradlew -p android spotlessapply",
"build": "bob build",
"changeset": "changeset",
"version-packages": "changeset version && yarn install --mode=update-lockfile",
"release": "changeset publish",
"prepack": "yarn run build"
},
"peerDependencies": {
Expand All @@ -68,6 +71,8 @@
"devDependencies": {
"@babel/core": "^7.29.7",
"@callstack/eslint-config": "^15.0.0",
"@changesets/changelog-github": "^1.0.1",
"@changesets/cli": "^3.0.3",
"@react-native/babel-preset": "^0.87.1",
"@react-native/typescript-config": "^0.87.1",
"@types/react": "^19.3.0",
Expand Down
Loading
Loading