[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
Lauren Tan committed
Jul 29, 2024 at 13:37 UTC
93b12b824c3cf13be75a7fb0581187fa2fb1f52c
1 file changed
+2
-3
.github/workflows/runtime_prereleases.yml
+2
-3
@@ -16,6 +16,8 @@ on:
16
17
env:
18
TZ: /usr/share/zoneinfo/America/Los_Angeles
19
+ GH_TOKEN: ${{ github.token }}
20
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
21
22
jobs:
23
publish_prerelease:
@@ -41,6 +43,3 @@ jobs:
43
scripts/release/prepare-release-from-ci.js --skipTests -r ${{ inputs.release_channel }} --commit=${{ inputs.commit_sha }}
44
cp ./scripts/release/ci-npmrc ~/.npmrc
45
scripts/release/publish.js --ci --tags ${{ inputs.dist_tag }}
44
- env:
45
- GH_TOKEN: ${{ github.token }}
46
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}