From 0fb557b983c7c5fa3d0bec8f2e503d64fcbc2893 Mon Sep 17 00:00:00 2001 From: DellaBitta Date: Thu, 9 Jul 2026 11:10:57 -0400 Subject: [PATCH] Add the GitHub token to the release script --- .github/workflows/release-prod.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-prod.yml b/.github/workflows/release-prod.yml index 0479e20cf6..a4547f98c9 100644 --- a/.github/workflows/release-prod.yml +++ b/.github/workflows/release-prod.yml @@ -54,8 +54,15 @@ jobs: # --ignoreUnstaged Adding the @firebase/app changeset file means # there's unstaged changes. Ignore. # TODO: Make these flags defaults in the release script. - run: yarn release --releaseType Production --ci --skipTests --skipReinstall --ignoreUnstaged + run: | + # 1. Inject the credentials just-in-time + git remote set-url origin https://x-access-token:${OSS_BOT_GITHUB_TOKEN}@github.com/${{ github.repository }}.git + # 2. Run the release script + yarn release --releaseType Production --ci --skipTests --skipReinstall --ignoreUnstaged + # 3. Wipe the credentials so they don't stick around + git remote set-url origin https://github.com/${{ github.repository }}.git env: + OSS_BOT_GITHUB_TOKEN: ${{ secrets.OSS_BOT_GITHUB_TOKEN }} NPM_TOKEN_ANALYTICS: ${{secrets.NPM_TOKEN_ANALYTICS}} NPM_TOKEN_ANALYTICS_INTEROP_TYPES: ${{secrets.NPM_TOKEN_ANALYTICS_INTEROP_TYPES}} NPM_TOKEN_ANALYTICS_TYPES: ${{secrets.NPM_TOKEN_ANALYTICS_TYPES}}