Skip to content

Commit bfc5514

Browse files
committed
Add publish job
1 parent 324afb5 commit bfc5514

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,3 +345,28 @@ jobs:
345345
run: npx rescript -h && npx rescript build && cat src/Test.bs.js
346346
shell: bash
347347
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

0 commit comments

Comments
 (0)