Skip to content

Commit c2e966c

Browse files
ci(release): add workflow dispatch
1 parent 245af79 commit c2e966c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Release
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches: [main, alpha, beta, rc, v4]
67

@@ -48,11 +49,12 @@ jobs:
4849
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4950
- name: Auto-merge Changesets PR
5051
if: steps.changesets.outputs.hasChangesets == 'true'
51-
run: gh pr --repo "$REPO" merge --squash "$PR_NUM"
52+
run: |
53+
gh pr merge --squash "$PR_NUMBER"
54+
gh workflow run release.yml --ref main
5255
env:
5356
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
PR_NUM: ${{ steps.changesets.outputs.pullRequestNumber }}
55-
REPO: ${{ github.repository }}
57+
PR_NUMBER: ${{ steps.changesets.outputs.pullRequestNumber }}
5658
- name: Upload coverage to Codecov
5759
uses: codecov/[email protected]
5860
with:

0 commit comments

Comments
 (0)