File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 11name : Release
22
3+ # Runs automatically only AFTER the CI workflow succeeds on main, so a red
4+ # main never publishes. The changesets flow then takes over:
5+ # 1. add a changeset in your PR, merge to main
6+ # 2. CI passes -> this opens/updates a "Version Packages" PR
7+ # 3. merging THAT PR re-runs CI -> this publishes to npm
38on :
4- push :
9+ workflow_run :
10+ workflows : [CI]
511 branches : [main]
12+ types : [completed]
613
714concurrency : ${{ github.workflow }}-${{ github.ref }}
815
@@ -13,9 +20,13 @@ permissions:
1320
1421jobs :
1522 release :
23+ # Only release when CI on a push to main actually passed.
24+ if : ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' }}
1625 runs-on : ubuntu-latest
1726 steps :
1827 - uses : actions/checkout@v4
28+ with :
29+ fetch-depth : 0
1930
2031 # Installs Node and pnpm at the exact versions pinned in mise.toml.
2132 - name : Setup toolchain (mise)
You can’t perform that action at this time.
0 commit comments