Skip to content

Commit dc3d11c

Browse files
committed
Add pkg.pr.new workflow
1 parent b9bff84 commit dc3d11c

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,13 +550,37 @@ jobs:
550550
shell: bash
551551
working-directory: ${{ steps.tmp-dir.outputs.path }}
552552

553-
publish:
553+
publish-pr:
554554
needs: [package, installationTest]
555+
if: github.event_name == 'pull_request'
556+
runs-on: ubuntu-24.04-arm
557+
steps:
558+
- name: Checkout
559+
uses: actions/checkout@v4
555560

556-
if: startsWith(github.ref, 'refs/tags/v')
561+
- name: Use Node.js
562+
uses: actions/setup-node@v4
563+
with:
564+
cache: yarn
565+
node-version-file: .nvmrc
557566

558-
runs-on: ubuntu-24.04-arm
567+
- name: Download artifacts
568+
uses: actions/download-artifact@v4
569+
with:
570+
name: npm-packages
571+
572+
- name: Move artifacts into packages
573+
run: .github/workflows/moveArtifacts.sh
574+
shell: bash
559575

576+
- name: Publish packages to pkg.pr.new
577+
run: |
578+
yarn dlx pkg-pr-new publish "." "./packages/@rescript/*"
579+
580+
publish:
581+
needs: [package, installationTest]
582+
if: startsWith(github.ref, 'refs/tags/v')
583+
runs-on: ubuntu-24.04-arm
560584
steps:
561585
- name: Checkout
562586
uses: actions/checkout@v4

0 commit comments

Comments
 (0)