Skip to content

Commit ab8b3ff

Browse files
authored
ci(release): publish on main release commits (#8)
1 parent 4956372 commit ab8b3ff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Publish to npm
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
branches: [main]
66
workflow_dispatch:
77

88
permissions:
@@ -11,6 +11,9 @@ permissions:
1111

1212
jobs:
1313
publish:
14+
if: >-
15+
github.event_name == 'workflow_dispatch' ||
16+
startsWith(github.event.head_commit.message, 'chore(main): release ')
1417
runs-on: ubuntu-latest
1518
environment: CI
1619
steps:

0 commit comments

Comments
 (0)