File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Release
22
33on :
4- push :
5- branches :
6- - main
4+ workflow_run :
5+ workflows : ["CI"]
6+ types :
7+ - completed
8+
9+ permissions :
10+ contents : write
11+ pull-requests : write
712
813jobs :
914 release :
15+ if : ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && github.event.workflow_run.head_branch == 'main' }}
1016 runs-on : ubuntu-latest
1117
1218 steps :
1319 - uses : actions/checkout@v4
1420 with :
1521 fetch-depth : 0
22+ ref : ${{ github.event.workflow_run.head_sha }}
1623
1724 - uses : pnpm/action-setup@v4
1825 with :
@@ -25,12 +32,11 @@ jobs:
2532 registry-url : https://registry.npmjs.org
2633
2734 - run : pnpm install --frozen-lockfile
28- - run : pnpm run check
29- - run : pnpm run build
3035
3136 - name : Create Release Pull Request or Publish
3237 uses : changesets/action@v1
3338 with :
39+ commit : " chore: version packages"
3440 version : pnpm run version-packages
3541 publish : pnpm run release
3642 env :
You can’t perform that action at this time.
0 commit comments