Skip to content

Commit 21ad6b2

Browse files
authored
Fix if condition on wasm workflow (#718)
Should be `refs/heads/main` not `refs/head/main`.
1 parent 0e7bc70 commit 21ad6b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-wasm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
if-no-files-found: error
6060

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

7171
- name: Publish NPM
72-
if: ${{ github.ref == 'refs/head/main' }}
72+
if: ${{ github.ref == 'refs/heads/main' }}
7373
run: npm publish --access public
7474
env:
7575
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)