Parallel release test #621
Workflow file for this run
This file contains 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 | |
pull_request: | |
jobs: | |
determine-should-release: | |
if: ${{ startsWith(github.head_ref, 'release--') }} | |
name: Determine if this branch should release | |
runs-on: ubuntu-latest | |
outputs: | |
should-release: ${{ steps.determine-should-release.outputs.should-release }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: determine-should-release | |
uses: ./.github/actions/should_release | |
release: | |
name: Deploy release | |
# Only run this job if it's a release branch. This job will run instead of run-tests and will automatically publish another commit which will be tested | |
if: ${{ needs.determine-should-release.outputs.should-release == 'true' }} | |
needs: | |
- determine-should-release | |
uses: ./.github/workflows/release_parallel.yml | |
secrets: | |
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
LASTMJS_GITHUB_TOKEN: ${{ secrets.LASTMJS_GITHUB_TOKEN }} |