Skip to content

Commit cda418a

Browse files
committed
chore(ci): add manual workflow dispatch for publishing
1 parent 85409cc commit cda418a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [main]
66
pull_request:
77
types: ["closed"]
8+
workflow_dispatch:
89

910
concurrency: ${{ github.workflow }}-${{ github.ref }}
1011

@@ -32,15 +33,15 @@ jobs:
3233
- name: Create Release Pull Request
3334
id: changesets
3435
uses: changesets/action@v1
35-
if: github.event.pull_request.merged != true
36+
if: github.event_name != 'workflow_dispatch' && github.event.pull_request.merged != true
3637
with:
3738
version: bun run version
3839
env:
3940
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4041

4142
- name: Build
4243
id: build
43-
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'changeset-release/main')
44+
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true && startsWith(github.head_ref, 'changeset-release/main')
4445
run: bun run build
4546
- name: Publish to npm
4647
id: publish

0 commit comments

Comments
 (0)