From 1abf10696340224eaa602168dd32367a1d9f7b33 Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Mon, 7 Feb 2022 18:19:07 +0100 Subject: [PATCH] chore: cleanup workflows --- .../workflows/{npm_release.yml => npm_release_cli.yml} | 2 ++ .../workflows/npm_release_doctor.yml | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) rename .github/workflows/{npm_release.yml => npm_release_cli.yml} (95%) rename packages/doctor/.github/workflows/npm_release.yml => .github/workflows/npm_release_doctor.yml (82%) diff --git a/.github/workflows/npm_release.yml b/.github/workflows/npm_release_cli.yml similarity index 95% rename from .github/workflows/npm_release.yml rename to .github/workflows/npm_release_cli.yml index bde0281f64..5643eed201 100644 --- a/.github/workflows/npm_release.yml +++ b/.github/workflows/npm_release_cli.yml @@ -3,6 +3,8 @@ name: 'nativescript -> npm' on: push: branches: [ 'master' ] + paths-ignore: + - 'packages/**' workflow_dispatch: env: diff --git a/packages/doctor/.github/workflows/npm_release.yml b/.github/workflows/npm_release_doctor.yml similarity index 82% rename from packages/doctor/.github/workflows/npm_release.yml rename to .github/workflows/npm_release_doctor.yml index 9b0c0a5ea5..2d2eda1c2a 100644 --- a/packages/doctor/.github/workflows/npm_release.yml +++ b/.github/workflows/npm_release_doctor.yml @@ -3,6 +3,13 @@ name: '@nativescript/doctor -> npm' on: push: branches: [ 'master' ] + paths: + - 'packages/doctor' + workflow_dispatch: + +defaults: + run: + working-directory: packages/doctor env: NPM_TAG: 'next' @@ -33,4 +40,4 @@ jobs: run: | echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc echo "Publishing @nativescript/doctor@$NPM_VERSION to NPM with tag $NPM_TAG..." - npm publish nativescript-doctor-$NPM_VERSION.tgz --tag $NPM_TAG + # npm publish nativescript-doctor-$NPM_VERSION.tgz --tag $NPM_TAG