feat: add git pre-commit drift hook (#17) #45
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 | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: release-please | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| release_created: ${{ steps.release.outputs.release_created }} | |
| tag_name: ${{ steps.release.outputs.tag_name }} | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| config-file: release-please-config.json | |
| manifest-file: .release-please-manifest.json | |
| target-branch: main | |
| token: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }} | |
| # When release-please cuts a release, build + attach artifacts in THIS run. | |
| # The tag was created by GITHUB_TOKEN, so `on: push: tags` won't fire — chain it here. | |
| release: | |
| needs: release-please | |
| if: needs.release-please.outputs.release_created == 'true' | |
| # Must grant every scope release.yml's top-level `permissions` requests — a | |
| # reusable workflow's permissions can be equal to or more restrictive than | |
| # the caller's, never broader, or the run fails at startup. | |
| permissions: | |
| contents: write | |
| packages: write | |
| id-token: write | |
| attestations: write | |
| actions: read | |
| uses: ./.github/workflows/release.yml | |
| secrets: inherit |