From 4e93b246158e5741cc5da6082ffaf5fd7ffb1602 Mon Sep 17 00:00:00 2001 From: Kevin Pearson Date: Mon, 13 Nov 2023 07:34:00 -0800 Subject: [PATCH] PR deploy --- .github/workflows/release-github.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-github.yml b/.github/workflows/release-github.yml index e81cd417c..ca9131e7d 100644 --- a/.github/workflows/release-github.yml +++ b/.github/workflows/release-github.yml @@ -38,22 +38,22 @@ jobs: - name: Set main tags if: github.ref_name == 'main' && github.event_name != 'pull_request' run: | - echo "NPM_DIST_TAG=--tag latest" >> $GITHUB_ENV + echo "NPM_DIST_TAG=latest" >> $GITHUB_ENV echo "DOCS_TAG=latest" >> $GITHUB_ENV - name: Set next tags if: github.ref_name == 'next' && github.event_name != 'pull_request' run: | - echo "NPM_DIST_TAG=--tag next" >> $GITHUB_ENV + echo "NPM_DIST_TAG=next" >> $GITHUB_ENV echo "DOCS_TAG=next" >> $GITHUB_ENV - name: Set feature branch tags if: github.ref_name != 'main' && github.ref_name != 'next' && github.event_name != 'pull_request' run: | - echo "NPM_DIST_TAG=--tag test" >> $GITHUB_ENV + echo "NPM_DIST_TAG=test" >> $GITHUB_ENV echo "FEATURE_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV - name: Set PR tags if: github.ref_name != 'main' && github.ref_name != 'next' && github.event_name == 'pull_request' run: | - echo "NPM_DIST_TAG=--tag test" >> $GITHUB_ENV + echo "NPM_DIST_TAG=test" >> $GITHUB_ENV echo "DOCS_TAG=$(node ./src/js/version.mjs branch-to-prerelease ${{ github.head_ref }})" >> $GITHUB_ENV echo "FEATURE_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV - name: Release mono-artifact to GitHub @@ -86,12 +86,12 @@ jobs: run: | npm --version echo "NPM DIST TAG :: " $NPM_DIST_TAG - npm publish $NPM_DIST_TAG --workspaces + npm publish --tag $NPM_DIST_TAG --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') env: NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} # <-- Allows semantic-release to publish to npm without 2 factor auth. - run: npm publish $NPM_DIST_TAG --workspaces --dry-run + run: npm publish --tag $NPM_DIST_TAG --workspaces --dry-run - name: Checkout firebolt GitHub.io repository if: steps.check_build.outputs.files_exists == 'true' env: