File tree Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -550,13 +550,37 @@ jobs:
550
550
shell : bash
551
551
working-directory : ${{ steps.tmp-dir.outputs.path }}
552
552
553
- publish :
553
+ publish-pr :
554
554
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
555
560
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
557
566
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
559
575
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
560
584
steps :
561
585
- name : Checkout
562
586
uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments