Skip to content

Commit 18a12ca

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

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release.yml

Lines changed: 6 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

@@ -12,6 +13,7 @@ env:
1213
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
1314

1415
permissions:
16+
actions: write
1517
contents: write
1618
id-token: write
1719
pull-requests: write
@@ -48,11 +50,12 @@ jobs:
4850
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4951
- name: Auto-merge Changesets PR
5052
if: steps.changesets.outputs.hasChangesets == 'true'
51-
run: gh pr --repo "$REPO" merge --squash "$PR_NUM"
53+
run: |
54+
gh pr merge --squash "$PR_NUMBER"
55+
gh workflow run release.yml --ref main
5256
env:
5357
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
PR_NUM: ${{ steps.changesets.outputs.pullRequestNumber }}
55-
REPO: ${{ github.repository }}
58+
PR_NUMBER: ${{ steps.changesets.outputs.pullRequestNumber }}
5659
- name: Upload coverage to Codecov
5760
uses: codecov/[email protected]
5861
with:

0 commit comments

Comments
 (0)