fix: NPM_TAG
This commit is contained in:
@@ -6,7 +6,7 @@ env:
|
||||
NPM_TAG:
|
||||
sh: |
|
||||
tag=dev
|
||||
if [[ "$GITHUB_REF_NAME" = "v*" ]]; then
|
||||
if [[ "$GITHUB_REF_NAME" = "v"* ]] || [[ "$GITHUB_REF_NAME" = "main" ]]; then
|
||||
tag=latest
|
||||
fi
|
||||
echo "$tag"
|
||||
@@ -68,8 +68,9 @@ tasks:
|
||||
cmd: |
|
||||
name=$(npm pkg get name | tr -d '"')
|
||||
version=$(npm pkg get version | tr -d '"')
|
||||
#npm dist-tag rm "$name" "$NPM_TAG" || true
|
||||
npm dist-tag rm "$name" "$NPM_TAG" || true
|
||||
npm unpublish "$name@$version" --force || true
|
||||
sleep 1
|
||||
|
||||
base:npm:publish:
|
||||
desc: "Публикация"
|
||||
|
||||
Reference in New Issue
Block a user