Skip to content

Commit da59c64

Browse files
committed
ci: publish pkg-pr-new previews for main pushes
1 parent 67a7d80 commit da59c64

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,10 @@ jobs:
4747
- name: Run tests
4848
run: npm test
4949

50-
- run: npx pkg-pr-new publish
50+
- name: Publish preview package for pull requests
51+
if: github.event_name == 'pull_request'
52+
run: npx pkg-pr-new publish --comment=update
53+
54+
- name: Publish preview package for main
55+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
56+
run: npx pkg-pr-new publish --comment=off

0 commit comments

Comments
 (0)