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