Fix broken release-please PR #1
Workflow file for this run
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-please-pr | |
| on: | |
| pull_request: | |
| types: | |
| - closed | |
| branches: | |
| - master | |
| jobs: | |
| release-pr: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| if: ${{ github.event.pull_request.merged == true && !startsWith(github.head_ref, 'release-please--branches--') }} | |
| env: | |
| YARN_RC_FILENAME: .yarnrc-public.yml | |
| steps: | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24.11.0' | |
| - uses: google-github-actions/release-please-action@v3 | |
| id: release-please | |
| with: | |
| release-type: node | |
| package-name: '@appfolio/react-gears' | |
| changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false},{"type":"refactor","section":"Miscellaneous","hidden":false}]' | |
| command: release-pr | |
| - uses: actions/github-script@v5 | |
| if: ${{ steps.release-please.outputs.pr }} | |
| id: extract-branch | |
| env: | |
| PR_NUM: ${{ steps.release-please.outputs.pr }} | |
| with: | |
| result-encoding: string | |
| script: return JSON.parse(process.env.PR_NUM).headBranchName | |
| - uses: actions/checkout@v5 | |
| if: ${{ steps.release-please.outputs.pr }} | |
| with: | |
| ref: ${{ steps.extract-branch.outputs.result }} | |
| - run: yarn install --immutable | |
| if: ${{ steps.release-please.outputs.pr }} | |
| - run: yarn docs | |
| if: ${{ steps.release-please.outputs.pr }} | |
| - uses: stefanzweifel/git-auto-commit-action@v4 | |
| if: ${{ steps.release-please.outputs.pr }} | |
| with: | |
| commit_message: 'docs: update documentation for the latest release' |