File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 11name : Release
22on :
3- push :
4- branches :
5- - master
6- - main
7- - beta
3+ workflow_dispatch :
4+ inputs :
5+ dry_run :
6+ description : ' Run semantic-release in "dry run" mode'
7+ default : false
8+ type : boolean
9+
810env :
911 NODE_OPTIONS : --max_old_space_size=4096
1012jobs :
1113 release :
1214 name : Release
1315 runs-on : ubuntu-latest
16+ # GH does not allow to limit branches in the workflow_dispatch settings so this here is a safety measure
17+ if : ${{ github.ref_name == 'master' || github.ref_name == 'rc' || github.ref_name == 'release-v9' }}
1418 steps :
1519 - name : Checkout
1620 uses : actions/checkout@v3
2832 env :
2933 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
3034 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31- run : yarn semantic-release
35+ run : >
36+ yarn semantic-release
37+ ${{ inputs.dry_run && '--dry-run' || '' }}
You can’t perform that action at this time.
0 commit comments