Release PR #43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release PR | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release_pr: | |
| runs-on: ubuntu-latest | |
| env: | |
| # Disable git hooks (e.g. husky) so the Changesets commit can't fail in CI. | |
| HUSKY: 0 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - name: Create/Update Release PR | |
| uses: changesets/action@v1 | |
| with: | |
| version: node ./scripts/version-packages-and-lockfile.mjs | |
| commit: "chore(release): version packages" | |
| title: "chore(release): version packages" | |
| # Use git commits to avoid GitHub Contents API limitations (e.g., executable file modes in the repo). | |
| commitMode: git-cli | |
| env: | |
| # Use a PAT if provided, since the default GITHUB_TOKEN may be restricted from creating PRs by repo settings. | |
| GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN || secrets.GITHUB_TOKEN }} |