Skip to content

Commit

Permalink
Only release on main
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed Apr 15, 2024
1 parent 93181df commit e869dbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
if-no-files-found: error

- name: Set version
if: ${{ github.ref == 'refs/head/main' }}
run: |
npm version --no-git-tag-version $(npm view @bitwarden/sdk-wasm@latest version)
npm version --no-git-tag-version prerelease
Expand All @@ -67,6 +68,7 @@ jobs:
working-directory: languages/js/wasm

- name: Publish NPM
if: ${{ github.ref == 'refs/head/main' }}
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit e869dbb

Please sign in to comment.