diff --git a/.changeset/config.json b/.changeset/config.json index 4cac078..6402ccb 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -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": [], diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 397fbaa..effc192 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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..." diff --git a/package.json b/package.json index 1e83bae..87dcc83 100644 --- a/package.json +++ b/package.json @@ -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" } } \ No newline at end of file