Repository navigation
Bump version to 26.10.07.10.00 #4
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] | |
| paths: [package.json] | |
| workflow_dispatch: | |
| inputs: | |
| publish: | |
| description: 'Publish Docker Hub images and GitHub Release (main only); unchecked builds artifacts only' | |
| type: boolean | |
| default: false | |
| permissions: | |
| contents: read | |
| jobs: | |
| prepare: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| outputs: | |
| should_run: ${{ steps.plan.outputs.should_run }} | |
| publish: ${{ steps.plan.outputs.publish }} | |
| tag: ${{ steps.plan.outputs.tag }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| - name: Compare versions and validate the release request | |
| id: plan | |
| run: node tools/release-metadata.cjs | |
| verify: | |
| needs: prepare | |
| if: needs.prepare.outputs.should_run == 'true' | |
| uses: ./.github/workflows/verify.yml | |
| publish: | |
| needs: [prepare, verify] | |
| if: needs.prepare.outputs.publish == 'true' | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 25 | |
| # Configure approval rules for this environment if desired. | |
| environment: release | |
| # Serialize only publishing. Retain pending versions instead of replacing them. | |
| concurrency: | |
| group: release-publish-${{ github.repository }} | |
| cancel-in-progress: false | |
| queue: max | |
| permissions: | |
| contents: write | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| RELEASE_TAG: ${{ needs.prepare.outputs.tag }} | |
| DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| pattern: binary-* | |
| path: pkg_dist/releases | |
| merge-multiple: true | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| pattern: docker-image-* | |
| path: pkg_dist/images | |
| merge-multiple: true | |
| - uses: docker/setup-buildx-action@v3 | |
| - uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Publish only the tested artifacts | |
| run: node tools/publish-release.cjs |