ci: enable publishing & allow skipping ci [skip ci]

This commit is contained in:
Igor Randjelovic
2021-02-01 12:48:00 +01:00
parent 8698a1ab84
commit 30bb87f19d

View File

@@ -26,6 +26,12 @@ env:
jobs:
release:
if: |
!(
contains(github.event.head_commit.message, 'skip ci') ||
contains(github.event.head_commit.message, 'ci skip') ||
contains(github.event.head_commit.message, 'no ci')
)
runs-on: ubuntu-latest
steps:
@@ -78,10 +84,10 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: |
#echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ../.npmrc
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ../.npmrc
echo "Publishing @nativescript/core@$NPM_VERSION to NPM with tag $NPM_TAG..."
#npm publish nativescript-core-$NPM_VERSION.tgz --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_TNS..."
#npm publish tns-core-modules-$NPM_VERSION.tgz --tag $NPM_TAG_TNS
npm publish tns-core-modules-$NPM_VERSION.tgz --tag $NPM_TAG_TNS