mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Avoid building twice
This commit is contained in:
parent
361ce79faa
commit
199acfc23b
1 changed files with 2 additions and 2 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue