From 93b12b824c3cf13be75a7fb0581187fa2fb1f52c Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Mon, 29 Jul 2024 13:37:53 -0400 Subject: [PATCH] [ci] Fix prerelease script npm authtoken Try again to specify the npm token so the publish script can succeed. ghstack-source-id: cd6e01b2ea9b320d02975849703269f17de45bd4 Pull Request resolved: https://github.com/facebook/react/pull/30503 --- .github/workflows/runtime_prereleases.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/runtime_prereleases.yml b/.github/workflows/runtime_prereleases.yml index a900c44dc7451..edf3bfd8078ef 100644 --- a/.github/workflows/runtime_prereleases.yml +++ b/.github/workflows/runtime_prereleases.yml @@ -16,6 +16,8 @@ on: env: TZ: /usr/share/zoneinfo/America/Los_Angeles + GH_TOKEN: ${{ github.token }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} jobs: publish_prerelease: @@ -41,6 +43,3 @@ jobs: scripts/release/prepare-release-from-ci.js --skipTests -r ${{ inputs.release_channel }} --commit=${{ inputs.commit_sha }} cp ./scripts/release/ci-npmrc ~/.npmrc scripts/release/publish.js --ci --tags ${{ inputs.dist_tag }} - env: - GH_TOKEN: ${{ github.token }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }}