Skip to content

Commit 334b813

Browse files
Merge pull request #636 from pixijs/jw/pkg-pr-new
chore: publish preview packages for pull requests
2 parents 6466ef4 + 75866bb commit 334b813

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/handle-release-branch-push.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,27 @@ jobs:
4343
- name: ${{ matrix.script.name }}
4444
run: npm run ${{ matrix.script.command }}
4545

46+
preview:
47+
name: 'Publish: Preview'
48+
needs:
49+
- verify
50+
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'main' }}
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v4
55+
with:
56+
fetch-depth: 0
57+
58+
- name: Setup project
59+
uses: ./.github/actions/setup
60+
61+
- name: Build Project
62+
run: npm run build
63+
shell: bash
64+
65+
- name: Publish
66+
run: npx pkg-pr-new@latest publish --no-template
4667
publish:
4768
name: 'Publish: Release'
4869
needs:

0 commit comments

Comments
 (0)