Skip to content

Commit 4fa1417

Browse files
committed
ci(release): trigger on git tags (v*) instead of every push to main
1 parent b8dd2ea commit 4fa1417

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Release
22

33
on:
44
push:
5-
branches:
6-
- main
5+
tags:
6+
- 'v*'
77

88
concurrency:
99
group: ${{ github.workflow }}-${{ github.ref }}
@@ -14,7 +14,6 @@ jobs:
1414
release-npm:
1515
name: Publish to npm (Changesets)
1616
runs-on: ubuntu-latest
17-
if: github.ref == 'refs/heads/main'
1817
permissions:
1918
contents: write
2019
pull-requests: write

0 commit comments

Comments
 (0)