From 941e1b4a0a81ca3d5f2ac6ef35682e2f8e96dae1 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Mon, 29 Jul 2024 14:15:20 -0400 Subject: [PATCH] [ci] Fix passing secrets to runtime_prereleases Second try, seems like you need to explicitly pass secrets to reusable workflows. ghstack-source-id: 05ffdae13474dba64119182bf72c15d07f83efd2 Pull Request resolved: https://github.com/facebook/react/pull/30504 --- .github/workflows/runtime_prereleases.yml | 3 +++ .github/workflows/runtime_prereleases_manual.yml | 4 ++++ .github/workflows/runtime_prereleases_nightly.yml | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/.github/workflows/runtime_prereleases.yml b/.github/workflows/runtime_prereleases.yml index edf3bfd8078ef..f2bc8aa1d7a7f 100644 --- a/.github/workflows/runtime_prereleases.yml +++ b/.github/workflows/runtime_prereleases.yml @@ -13,6 +13,9 @@ on: dist_tag: required: true type: string + secrets: + NPM_TOKEN: + required: true env: TZ: /usr/share/zoneinfo/America/Los_Angeles diff --git a/.github/workflows/runtime_prereleases_manual.yml b/.github/workflows/runtime_prereleases_manual.yml index 62940550f1d7a..4d031e7b4d69d 100644 --- a/.github/workflows/runtime_prereleases_manual.yml +++ b/.github/workflows/runtime_prereleases_manual.yml @@ -28,6 +28,8 @@ jobs: # downstream consumers might still expect that tag. We can remove this # after some time has elapsed and the change has been communicated. dist_tag: canary,next,rc + secrets: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} publish_prerelease_experimental: name: Publish to Experimental channel @@ -41,3 +43,5 @@ jobs: commit_sha: ${{ inputs.prerelease_commit_sha }} release_channel: experimental dist_tag: experimental + secrets: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/runtime_prereleases_nightly.yml b/.github/workflows/runtime_prereleases_nightly.yml index 965fd86a445a2..a4c2c2d0225b5 100644 --- a/.github/workflows/runtime_prereleases_nightly.yml +++ b/.github/workflows/runtime_prereleases_nightly.yml @@ -16,6 +16,8 @@ jobs: commit_sha: ${{ github.sha }} release_channel: stable dist_tag: canary,next,rc + secrets: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} publish_prerelease_experimental: name: Publish to Experimental channel @@ -29,3 +31,5 @@ jobs: commit_sha: ${{ github.sha }} release_channel: experimental dist_tag: experimental + secrets: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}