diff --git a/.github/workflows/release-github.yml b/.github/workflows/release-github.yml index ca9131e7d..70fb05bd5 100644 --- a/.github/workflows/release-github.yml +++ b/.github/workflows/release-github.yml @@ -54,7 +54,7 @@ jobs: if: github.ref_name != 'main' && github.ref_name != 'next' && github.event_name == 'pull_request' run: | echo "NPM_DIST_TAG=test" >> $GITHUB_ENV - echo "DOCS_TAG=$(node ./src/js/version.mjs branch-to-prerelease ${{ github.head_ref }})" >> $GITHUB_ENV + echo "DOCS_TAG=pr-$(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 if: (github.ref_name != 'main' && github.event_name != 'pull_request') || github.event_name == 'workflow_dispatch' @@ -100,7 +100,7 @@ jobs: cd /tmp git clone https://rdkcentral:$GITHUB_TOKEN@github.com/rdkcentral/firebolt.git ./firebolt-docs - name: Release docs to GitHub.io - if: steps.check_build.outputs.files_exists == 'true' && (github.ref_name == 'main' || github.ref_name == 'next' || github.event_name != 'pull_request') + if: steps.check_build.outputs.files_exists == 'true' && (github.ref_name == 'main' || github.ref_name == 'next' || github.event_name == 'pull_request') env: GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_PAT }} # <-- Allows semantic-release-bot to push changes to protected branches run: |