Skip to content

Commit c91acf6

Browse files
committed
ci: fix release workflow
1 parent 5f50e76 commit c91acf6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test-and-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ jobs:
6666
# ===================
6767

6868
build_pages:
69+
# Trigger this step only when a commit on master is tagged with a version number
6970
if: |
7071
github.event_name == 'push' &&
71-
startsWith(github.ref, 'refs/heads/release/')
72+
startsWith(github.ref, 'refs/tags/v')
7273
7374
runs-on: ubuntu-latest
7475
steps:
@@ -99,9 +100,10 @@ jobs:
99100

100101
# Publish the package to npm and Github Pages when a release branch is pushed
101102
publish:
103+
# Trigger this step only when a commit on master is tagged with a version number
102104
if: |
103105
github.event_name == 'push' &&
104-
startsWith(github.ref, 'refs/heads/release/')
106+
startsWith(github.ref, 'refs/tags/v')
105107
106108
needs: [lint, build_cli, build_pages]
107109

0 commit comments

Comments
 (0)