Skip to content

Commit c87314e

Browse files
committed
0.1.0
1 parent 1f807fd commit c87314e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/CI.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,13 @@ jobs:
343343
npm config set provenance true
344344
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
345345
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
347348
yarn npm publish --access public
348349
elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
349350
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
351353
yarn npm publish --tag next --access public
352354
else
353355
echo "Not a release, skipping publish"

0 commit comments

Comments
 (0)