Skip to content

Commit

Permalink
Publish beta on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
caiiiycuk authored Mar 18, 2024
1 parent 54d8f1b commit 9cd4b10
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
- run: cp -v binaryen-${{ matrix.binaryen-version }}/bin/wasm-opt ./emsdk/upstream/bin/wasm-opt
- run: source ./emsdk/emsdk_env.sh && yarn run gulp
- run: zip -9r release.zip dist/*
- name: publish
if: startsWith(github.ref, 'refs/tags/')
run: npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
- name: upload
uses: actions/[email protected]
with:
Expand All @@ -51,4 +56,4 @@ jobs:
with:
name: ${{ github.ref_name }}
files: |
${{github.workspace}}/release.zip
${{github.workspace}}/release.zip

0 comments on commit 9cd4b10

Please sign in to comment.