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')