ci(deps): bump github/codeql-action/init from 4.36.3 to 4.37.0 (#645) #96
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: {} | |
| jobs: | |
| test: | |
| name: Build & Test | |
| uses: ./.github/workflows/build-and-test.workflow.yml | |
| permissions: | |
| contents: read | |
| release: | |
| name: Release | |
| needs: test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| id-token: write | |
| outputs: | |
| new_release_published: ${{ steps.check.outputs.new_release_published }} | |
| new_release_version: ${{ steps.check.outputs.new_release_version }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | |
| with: | |
| node-version: 24 | |
| cache: 'pnpm' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build | |
| run: pnpm build | |
| - name: Get latest tag before release | |
| id: before | |
| run: echo "tag=$(git describe --tags --abbrev=0 2>/dev/null || echo 'none')" >> $GITHUB_OUTPUT | |
| - name: Release | |
| id: semantic | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: pnpm exec semantic-release | |
| - name: Check if new release was created | |
| id: check | |
| run: | | |
| git fetch --tags | |
| LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'none') | |
| if [ "$LATEST_TAG" != "${STEPS_BEFORE_OUTPUTS_TAG}" ]; then | |
| echo "new_release_published=true" >> $GITHUB_OUTPUT | |
| echo "new_release_version=${LATEST_TAG#v}" >> $GITHUB_OUTPUT | |
| else | |
| echo "new_release_published=false" >> $GITHUB_OUTPUT | |
| fi | |
| env: | |
| STEPS_BEFORE_OUTPUTS_TAG: ${{ steps.before.outputs.tag }} | |
| docker: | |
| name: Docker Publish | |
| needs: release | |
| if: needs.release.outputs.new_release_published == 'true' | |
| uses: ./.github/workflows/docker.workflow.yml | |
| permissions: | |
| contents: read | |
| packages: write | |
| secrets: | |
| DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
| DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | |
| with: | |
| platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 | |
| push: true |