mirror of
https://github.com/captbaritone/webamp
synced 2024-11-21 23:32:16 +00:00
Update branch and tag name
This commit is contained in:
parent
bb45f513bb
commit
2b5e6bc431
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -66,8 +66,8 @@ jobs:
|
||||
cache: "yarn"
|
||||
- name: Install dependencies
|
||||
run: yarn install --frozen-lockfile --ignore-scripts
|
||||
- name: Build latest (main) version
|
||||
if: github.ref == 'refs/heads/main'
|
||||
- name: Build latest (master) version
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: |
|
||||
yarn workspace webamp build-library
|
||||
echo "Setting version to 0.0.0-next-${{ env.GIT_HASH }}"
|
||||
@ -78,9 +78,9 @@ jobs:
|
||||
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
|
||||
run: exit 1 # TODO: Script to update version number in webampLazy.tsx
|
||||
- name: Publish to npm
|
||||
if: github.ref == 'refs/heads/main' || github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
|
||||
if: github.ref == 'refs/heads/master' || github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
|
||||
run: |
|
||||
npm publish webamp ${TAG}
|
||||
env:
|
||||
TAG: ${{ github.ref == 'refs/heads/main' && '--tag=main' || ((contains(github.ref_name, '-rc.') && '--tag=dev') || '' )}}
|
||||
TAG: ${{ github.ref == 'refs/heads/master' && '--tag=next' || ''}}
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
|
Loading…
Reference in New Issue
Block a user