Skip to content

Commit d33c959

Browse files
committed
fix: only publish on version tags (v*)
1 parent 1ce32ea commit d33c959

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: CI
33
on:
44
push:
55
branches: [main, master]
6+
tags: ['v*']
67
pull_request:
78
branches: [main, master]
89

@@ -56,7 +57,7 @@ jobs:
5657
publish:
5758
needs: [test, lint]
5859
runs-on: ubuntu-latest
59-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
60+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
6061

6162
steps:
6263
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)