From 7f5ef876c180167cca72454f4e9326192530f685 Mon Sep 17 00:00:00 2001 From: Denis Skripchenko Date: Sat, 14 Nov 2026 14:40:15 +0300 Subject: [PATCH] ci: release with changesets/action v2, which pushes tags and makes releases changesets/action@v1 looks for 'New tag:' lines in the publish output; the Changesets v3 CLI no longer prints them, so after publishing the action pushed no git tags and made no GitHub releases. v2 is built on Changesets v3 and pushes tags through the GitHub API; its inputs are renamed (publish -> publish-script) and the token is passed as github-token. Where a step tagged and released by hand in its place, that step goes. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d6b194..d39fc69 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,11 +30,13 @@ jobs: - run: pnpm install --frozen-lockfile # Without an npm token the job still opens version pull requests but # does not try to publish: a release is then published by hand. + # v2 reads the output of Changesets v3: v1 did not, so it pushed no tags + # and made no GitHub releases after publishing. - name: Create release pull request or publish - uses: changesets/action@v1 + uses: changesets/action@v2.1.2 with: - publish: ${{ secrets.NPM_TOKEN != '' && 'pnpm release' || '' }} + publish-script: ${{ secrets.NPM_TOKEN != '' && 'pnpm release' || '' }} + github-token: ${{ secrets.GITHUB_TOKEN }} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_CONFIG_PROVENANCE: true