Skip to content

Commit

Permalink
Authenticate npm before publishing native packages (#28041)
Browse files Browse the repository at this point in the history
  • Loading branch information
padmaia committed Aug 12, 2021
1 parent 2d38efa commit 24df675
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_test_deploy.yml
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions scripts/publish-release.sh
Expand Up @@ -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"
Expand Down

0 comments on commit 24df675

Please sign in to comment.