From 1fd99b5cace6e81401f1bf3eb3221716e24cc88d Mon Sep 17 00:00:00 2001 From: "Shah, Kevin" Date: Fri, 10 Nov 2023 12:48:06 -0500 Subject: [PATCH] Updated if condition for release npm --- .github/workflows/release-github.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-github.yml b/.github/workflows/release-github.yml index e51734428..d12793463 100644 --- a/.github/workflows/release-github.yml +++ b/.github/workflows/release-github.yml @@ -80,14 +80,14 @@ jobs: with: files: "./src/sdks/core/dist/lib/firebolt.mjs" - name: Release Firebolt SDKs to NPM - #if: steps.check_build.outputs.files_exists == 'true' && github.event_name != 'pull_request' && (github.ref_name != 'main' || github.event_name == 'workflow_dispatch') - if: steps.check_build.outputs.files_exists == 'true' && (github.ref_name != 'main' || github.event_name == 'workflow_dispatch') + if: steps.check_build.outputs.files_exists == 'true' && github.event_name != 'pull_request' && (github.ref_name != 'main' || github.event_name == 'workflow_dispatch') + # if: steps.check_build.outputs.files_exists == 'true' && (github.ref_name != 'main' || github.event_name == 'workflow_dispatch') env: NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} # <-- Allows semantic-release to publish to npm without 2 factor auth. npm_config_tag: ${{ env.NPM_DIST_TAG }} # <-- For main, this is `latest.` Otherwise, `next`, `next-major`, etc. See ./.releaserc for release branch config. run: | - echo "NPM DIST TAG ::: " ${{ env.NPM_DIST_TAG }} - echo "Release Channel ::: " $RELEASE_CHANNEL + echo "NPM DIST TAG :: " ${{ env.NPM_DIST_TAG }} + echo "Release Channel :: " $RELEASE_CHANNEL npm publish --tag $RELEASE_CHANNEL --workspaces - name: Dry-run Firebolt SDKs to NPM if: steps.check_build.outputs.files_exists == 'true' && (github.ref_name == 'main' && github.event_name != 'workflow_dispatch')