Skip to content

Commit

Permalink
fix main branch npm publish job trying to run in all branches
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Mar 20, 2024
1 parent cdfeb8c commit 3e6bdc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:

- name: publish
# publish npm & pypi packages, vscode extension and github release if the version in lerna.json was changed:
if: steps.version-was-changed.outputs.VERSION_INFO == ''
if: github.ref == 'refs/heads/main' && steps.version-was-changed.outputs.VERSION_INFO == ''
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit 3e6bdc5

Please sign in to comment.