File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -345,3 +345,28 @@ jobs:
345
345
run : npx rescript -h && npx rescript build && cat src/Test.bs.js
346
346
shell : bash
347
347
working-directory : packages/test
348
+
349
+ publish :
350
+ needs : [package, installationTest]
351
+
352
+ if : startsWith(github.ref, 'refs/tags/v')
353
+
354
+ runs-on : ubuntu-latest
355
+
356
+ steps :
357
+ - name : Use Node.js
358
+ uses : actions/setup-node@v3
359
+ with :
360
+ node-version : 16
361
+
362
+ - name : Download artifacts
363
+ uses : actions/download-artifact@v3
364
+ with :
365
+ name : npm-packages
366
+
367
+ - name : Publish packages on npm with tag "ci"
368
+ env :
369
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_ACCESS_TOKEN }}
370
+ run : |
371
+ npm publish rescript-${{ needs.package.outputs.rescript_version }}.tgz --tag ci
372
+ npm publish rescript-std-${{ needs.package.outputs.rescript_version }}.tgz --tag ci
You can’t perform that action at this time.
0 commit comments