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
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"$schema": "https://unpkg.com/@changesets/config@4.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,25 @@ jobs:

- name: Setup Node.js environment
uses: actions/setup-node@v7
with:
node-version: 24

- name: Install changeset dependencies
run: npm install

- name: Create release PR if new changesets are present
id: changesets
uses: changesets/action@v1
uses: changesets/action@v2
with:
title: 'New Release'
commit: 'Release new version'
version: npm run version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pr-title: 'New Release'
commit-message: 'Release new version'
version-script: npm run version
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Create new release if release PR is merged
if: steps.changesets.outputs.hasChangesets == 'false'
if: steps.changesets.outputs.has-changesets == 'false'
run: |
npx changeset tag && git push origin --tags
npx changeset git-tag && git push origin --tags
COMMIT_TAG=$(git tag --points-at HEAD)
if [ -n "$COMMIT_TAG" ]; then
echo "A tag is attached to HEAD. Creating a new release..."
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"version": "changeset version && PACKAGE_VERSION=$(node -p \"require('./package.json').version\") && sed -i \"s/version '.*'/version '$PACKAGE_VERSION'/g\" lib/build.gradle"
},
"devDependencies": {
"@changesets/cli": "^2.26.2"
"@changesets/cli": "^3.0.0"
}
}
Loading