Unverified Commit 24df675c authored by Maia Teegarden's avatar Maia Teegarden Committed by GitHub

Authenticate npm before publishing native packages (#28041)

parent 2d38efa7
......@@ -265,6 +265,7 @@ jobs:
with:
name: next-swc-binaries
path: packages/next/build/swc/dist
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: ./scripts/publish-native.js $GITHUB_REF
- run: ./scripts/publish-release.sh
......
......@@ -12,8 +12,6 @@ if [[ -z "$NPM_TOKEN" ]];then
exit 0;
fi
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
if [[ $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];
then
echo "Publishing canary"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment