Skip to content

Commit 1f773c6

Browse files
committed
ci: fix
1 parent b52f33a commit 1f773c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ci-cd.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: CI/CD
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
37

48
concurrency:
59
group: ${{ github.workflow }}-${{ github.ref }}
@@ -23,6 +27,7 @@ jobs:
2327
- run: pnpm run lint
2428
- run: pnpm run --if-present test
2529
- name: Create Release Pull Request or Publish to npm
30+
if: ${{ github.ref == 'refs/heads/main' }}
2631
uses: changesets/action@v1
2732
with:
2833
publish: pnpm exec changeset publish

0 commit comments

Comments
 (0)