From 199acfc23bef60c6250f7fb568066d7dc3f9fa7b Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Wed, 18 Jun 2025 17:37:33 -0700 Subject: [PATCH] Avoid building twice --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 870ff138..cb049977 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: