ci: allow tag override for tns-core-modules

This commit is contained in:
Igor Randjelovic
2021-02-01 12:33:46 +01:00
parent fe7a1a0b0a
commit 8698a1ab84

View File

@@ -11,12 +11,17 @@ on:
description: 'NPM Tag'
required: false
default: 'tns-next'
tagTNS:
description: 'NPM Tag for tns-core-modules (override)'
required: false
default: 'tns-next'
version:
description: 'NPM Version'
required: false
env:
NPM_TAG: ${{ github.event.inputs.tag || 'tns-next' }}
NPM_TAG_TNS: ${{ github.event.inputs.tagTNS || github.event.inputs.tag || 'tns-next' }}
NPM_VERSION: ${{ github.event.inputs.version }}
jobs:
@@ -78,5 +83,5 @@ jobs:
echo "Publishing @nativescript/core@$NPM_VERSION to NPM with tag $NPM_TAG..."
#npm publish nativescript-core-$NPM_VERSION.tgz --tag $NPM_TAG
echo "Publishing tns-core-modules@$NPM_VERSION to NPM with tag $NPM_TAG..."
#npm publish tns-core-modules-$NPM_VERSION.tgz --tag $NPM_TAG
echo "Publishing tns-core-modules@$NPM_VERSION to NPM with tag $NPM_TAG_TNS..."
#npm publish tns-core-modules-$NPM_VERSION.tgz --tag $NPM_TAG_TNS