From 30bb87f19d4fcf068629e6c574d5aae9d3cd0b62 Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Mon, 1 Feb 2021 12:48:00 +0100 Subject: [PATCH] ci: enable publishing & allow skipping ci [skip ci] --- .github/workflows/npm_release_tns_core.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm_release_tns_core.yml b/.github/workflows/npm_release_tns_core.yml index a002d94a9..abb11991b 100644 --- a/.github/workflows/npm_release_tns_core.yml +++ b/.github/workflows/npm_release_tns_core.yml @@ -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