File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -343,11 +343,13 @@ jobs:
343
343
npm config set provenance true
344
344
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
345
345
then
346
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
346
+ yarn config set npmPublishRegistry https://registry.npmjs.org/
347
+ yarn config set 'npmRegistries["//registry.npmjs.org"].npmAuthToken' $NPM_TOKEN
347
348
yarn npm publish --access public
348
349
elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
349
350
then
350
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
351
+ yarn config set npmPublishRegistry https://registry.npmjs.org/
352
+ yarn config set 'npmRegistries["//registry.npmjs.org"].npmAuthToken' $NPM_TOKEN
351
353
yarn npm publish --tag next --access public
352
354
else
353
355
echo "Not a release, skipping publish"
You can’t perform that action at this time.
0 commit comments