Skip to content

Commit

Permalink
ci(workflow): allow to trigger native builds manually (vercel#50703)
Browse files Browse the repository at this point in the history
### What?

This PR allows to trigger subset of build-and-deploy workflow manually via gh actions UI.

### Why?

Turbopack time to time requires to validate its changes against all of the platforms we build. Adding manual workflow allows to test it easier.

It tries to guard release check `isRelease` only if it comes from normal event (non manual dispatch) to avoid accidental publish workflow.
  • Loading branch information
kwonoj authored and hydRAnger committed Jun 12, 2023
1 parent 9daaa4c commit 4b1ecf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: build-and-deploy
on:
push:
branches: ['canary']
workflow_dispatch:

env:
NAPI_CLI_VERSION: 2.14.7
Expand All @@ -24,7 +25,7 @@ jobs:
outputs:
docsChange: ${{ steps.docs-change.outputs.DOCS_CHANGE }}
codemodChange: ${{ steps.codemod-change.outputs.CODEMOD_CHANGE }}
isRelease: ${{ steps.check-release.outputs.IS_RELEASE }}
isRelease: ${{ github.event_name != 'workflow_dispatch' && steps.check-release.outputs.IS_RELEASE }}
swcChange: ${{ steps.swc-change.outputs.SWC_CHANGE }}
turboToken: ${{ steps.turbo-token.outputs.TURBO_TOKEN }}
weekNum: ${{ steps.get-week.outputs.WEEK }}
Expand Down

0 comments on commit 4b1ecf6

Please sign in to comment.