Skip to content

Commit 941e1b4

Browse files
committed
[ci] Fix passing secrets to runtime_prereleases
Second try, seems like you need to explicitly pass secrets to reusable workflows. ghstack-source-id: 05ffdae Pull Request resolved: #30504
1 parent 9938e24 commit 941e1b4

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.github/workflows/runtime_prereleases.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
dist_tag:
1414
required: true
1515
type: string
16+
secrets:
17+
NPM_TOKEN:
18+
required: true
1619

1720
env:
1821
TZ: /usr/share/zoneinfo/America/Los_Angeles

.github/workflows/runtime_prereleases_manual.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
# downstream consumers might still expect that tag. We can remove this
2929
# after some time has elapsed and the change has been communicated.
3030
dist_tag: canary,next,rc
31+
secrets:
32+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3133

3234
publish_prerelease_experimental:
3335
name: Publish to Experimental channel
@@ -41,3 +43,5 @@ jobs:
4143
commit_sha: ${{ inputs.prerelease_commit_sha }}
4244
release_channel: experimental
4345
dist_tag: experimental
46+
secrets:
47+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/runtime_prereleases_nightly.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
commit_sha: ${{ github.sha }}
1717
release_channel: stable
1818
dist_tag: canary,next,rc
19+
secrets:
20+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1921

2022
publish_prerelease_experimental:
2123
name: Publish to Experimental channel
@@ -29,3 +31,5 @@ jobs:
2931
commit_sha: ${{ github.sha }}
3032
release_channel: experimental
3133
dist_tag: experimental
34+
secrets:
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)