Skip to content

Commit

Permalink
only publish to npm when git tag, not all main pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeseda committed Mar 7, 2024
1 parent 8eb63d9 commit 3e1ad6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ jobs:

# ----- Only git tag testing + release deployment beyond this point ----- #

# Publish to npm as @begin/deploy
npm-publish:
needs: test
if: startsWith(github.ref, 'refs/tags/v') ||
github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 3e1ad6b

Please sign in to comment.