Skip to content

Commit

Permalink
Fix if condition on wasm workflow (#718)
Browse files Browse the repository at this point in the history
Should be `refs/heads/main` not `refs/head/main`.
  • Loading branch information
Hinton authored Apr 16, 2024
1 parent 0e7bc70 commit 21ad6b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
if-no-files-found: error

- name: Set version
if: ${{ github.ref == 'refs/head/main' }}
if: ${{ github.ref == 'refs/heads/main' }}
# Fetches current version from registry and uses prerelease to bump it
run: |
npm version --no-git-tag-version $(npm view @bitwarden/sdk-wasm@latest version)
Expand All @@ -69,7 +69,7 @@ jobs:
working-directory: languages/js/wasm

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

0 comments on commit 21ad6b2

Please sign in to comment.