chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.0 (… #128
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| id-token: write | |
| steps: | |
| - name: Create GitHub App Token | |
| uses: actions/[email protected] | |
| id: app-token | |
| with: | |
| app-id: ${{ secrets.BOT_GH_APP_ID }} | |
| private-key: ${{ secrets.BOT_GH_APP_PRIVATE_KEY }} | |
| owner: ${{ github.repository_owner }} | |
| repositories: | | |
| cli | |
| - name: Checkout | |
| uses: actions/[email protected] | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Get GitHub App User ID | |
| id: get-user-id | |
| run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT" | |
| env: | |
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | |
| - name: Set up Git | |
| run: | | |
| git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]' | |
| git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com' | |
| git config --global commit.gpgsign false | |
| git config --global commit.signoff true | |
| - name: Install Flox | |
| uses: flox/install-flox-action@main | |
| - name: Install Cosign | |
| uses: sigstore/[email protected] | |
| - name: Check for existing releases | |
| id: check_releases | |
| env: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
| run: | | |
| if [ -z "$(gh release list --limit 1)" ]; then | |
| echo "create_initial=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "create_initial=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Create initial release | |
| if: steps.check_releases.outputs.create_initial == 'true' | |
| env: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
| run: | | |
| flox activate -- task build | |
| gh release create v0.1.0 --title "🚀 Version 0.1.0" --notes "Initial release" --generate-notes | |
| - name: Semantic Release | |
| if: steps.check_releases.outputs.create_initial == 'false' | |
| env: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
| run: | | |
| flox activate -- semantic-release |