Skip to content

Commit 9eeac92

Browse files
committed
ci: allow workflow-dispatch for create release notes
1 parent 4fd8262 commit 9eeac92

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/create-release-on-github.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Publish to NPM
22
on:
3+
workflow_dispatch:
34
pull_request:
45
types:
56
- closed
@@ -11,8 +12,10 @@ jobs:
1112
publish-to-npm:
1213
runs-on: ubuntu-latest
1314
if: |
14-
github.event.pull_request.merged == true &&
15-
contains(github.event.pull_request.title, 'chore: Release')
15+
github.event_name == 'workflow_dispatch' || (
16+
github.event.pull_request.merged == true &&
17+
contains(github.event.pull_request.title, 'chore: Release')
18+
)
1619
1720
steps:
1821
- name: Checkout
@@ -57,7 +60,7 @@ jobs:
5760
bun publish
5861
fi
5962
env:
60-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
63+
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
6164

6265
- name: Create release notes
6366
uses: actions/github-script@v8

0 commit comments

Comments
 (0)