chore(master): release 2.0.1 (#10) #12
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 | |
| # Maintains an open "chore(master): release x.y.z" pull request that accumulates every | |
| # merged change, derives the next version from the conventional-commit history, and | |
| # rewrites CHANGELOG.md. Nothing is versioned or tagged until that PR is merged. | |
| # | |
| # Chosen over fully automatic publishing on purpose: releasing is irreversible on npm, | |
| # so there is a human gate. Merging the release PR tags the commit and publishes the | |
| # GitHub Release, which is what release.yml listens for. | |
| on: | |
| push: | |
| branches: [master] | |
| # Lets a run be forced without pushing. Useful because release-please is silent by | |
| # design when there is nothing to release — dispatching it and reading the log is | |
| # the only way to tell "working, nothing to do" apart from "misconfigured". | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: googleapis/release-please-action@v5 | |
| with: | |
| # A PAT, not GITHUB_TOKEN. GitHub refuses to trigger workflows from events | |
| # raised with GITHUB_TOKEN, so the release pull request would arrive with | |
| # every check stuck in "action_required" and never run. Falls back to | |
| # GITHUB_TOKEN so the workflow still functions without the secret; the PR | |
| # just will not get checks. | |
| token: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }} | |
| # Configuration lives in release-please-config.json and the current version | |
| # in .release-please-manifest.json. Without the manifest the action logs | |
| # 'No version for path .' and never opens a release PR — it cannot know what | |
| # the previous version was. | |
| config-file: release-please-config.json | |
| manifest-file: .release-please-manifest.json |