ci(workflow): allow to trigger native builds manually (#50703)
### 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.
This commit is contained in:
parent
793d9bfc6a
commit
18d112fb5c
1 changed files with 2 additions and 1 deletions
3
.github/workflows/build_and_deploy.yml
vendored
3
.github/workflows/build_and_deploy.yml
vendored
|
@ -3,6 +3,7 @@ name: build-and-deploy
|
|||
on:
|
||||
push:
|
||||
branches: ['canary']
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
NAPI_CLI_VERSION: 2.14.7
|
||||
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue