mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
fix: update release script
This commit is contained in:
parent
f9d7126e3d
commit
f5257b32fa
5
.github/workflows/release.yaml
vendored
5
.github/workflows/release.yaml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: 'Release unleash-server'
|
name: 'Publish to npm'
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
@ -22,8 +22,7 @@ jobs:
|
|||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- run: |
|
- run: |
|
||||||
yarn install --frozen-lockfile
|
yarn install --frozen-lockfile
|
||||||
yarn lint
|
yarn lint
|
||||||
yarn run test
|
|
||||||
- run: |
|
- run: |
|
||||||
TAG=$(echo $GITHUB_REF_NAME | grep -oP '^v\d+\.\d+\.\d+-?\K(\w+)?')
|
TAG=$(echo $GITHUB_REF_NAME | grep -oP '^v\d+\.\d+\.\d+-?\K(\w+)?')
|
||||||
npm publish --tag ${TAG:-latest}
|
npm publish --tag ${TAG:-latest}
|
||||||
|
Loading…
Reference in New Issue
Block a user