diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ee9123c6e..af040bd1a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,11 +57,21 @@ jobs: # No NPM_TOKEN: npm exchanges the GitHub OIDC token through the trusted # publisher. + # + # Stay on the v1 line: v2 requires @changesets/cli v3, and CLI v3 needs + # Yarn 4 (this repo is on 1.22.19). v1.9.0 also carries the fix for the + # failure that blocked the 1.2.5 Version Packages PR: from v1.7.0 the + # github-api commit compares file oids before file modes, so the untouched + # .yarn/releases/yarn-1.22.19.cjs and example/android/gradlew no longer + # abort it. v1.9.0 additionally stops a github-api force-push from + # momentarily resetting the branch, which used to close the version PR. - name: Create Release Pull Request or Publish to npm id: changesets - uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba + uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0 with: publish: yarn release + # GitHub-API commits, so the version commit is GPG-signed. The tag is + # created through Octokit's createRef and stays lightweight. commitMode: github-api env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}