diff --git a/.github/workflows/release-canary.yml b/.github/workflows/release-canary.yml index 0da2c24608..f050434c14 100644 --- a/.github/workflows/release-canary.yml +++ b/.github/workflows/release-canary.yml @@ -40,7 +40,8 @@ jobs: run: npm run version:canary | tail -1 >> "$GITHUB_OUTPUT" - name: Build release - run: npx turbo build $TURBO_ARGS --force # TODO: Remove --force, when appropriate + if: steps.version-packages.outputs.success == '1' + run: npx turbo build $TURBO_ARGS - name: Canary release if: steps.version-packages.outputs.success == '1' diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index 8dbc771fd0..9357d822f5 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -67,6 +67,7 @@ jobs: run: npm run version:snapshot ${{ steps.extract-snapshot-name.outputs.name }} | tail -1 >> "$GITHUB_OUTPUT" - name: Build release + if: steps.version-packages.outputs.success == '1' run: npx turbo build $TURBO_ARGS - name: Snapshot release