Avoid building twice

This commit is contained in:
Jordan Eldredge 2025-06-18 17:37:33 -07:00
parent 361ce79faa
commit 199acfc23b

View file

@ -64,10 +64,9 @@ jobs:
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build latest (master) version
- name: Set version
if: github.ref == 'refs/heads/master'
run: |
yarn workspace webamp build-library
echo "Setting version to 0.0.0-next-${RELEASE_COMMIT_SHA::7}"
yarn workspace webamp version --new-version 0.0.0-next-${RELEASE_COMMIT_SHA::7} --no-git-tag-version
env:
@ -78,6 +77,7 @@ jobs:
- name: Publish to npm
working-directory: ./packages/webamp
if: github.ref == 'refs/heads/master' || github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
# Note: This also triggers a build
run: |
npm publish ${TAG}
env: