From 718d672a81a72bcd802401483cb6ba5c4dc49cf1 Mon Sep 17 00:00:00 2001 From: Roly Perera Date: Thu, 12 Dec 2024 14:54:56 +0000 Subject: [PATCH] Doesn't really work to rely on environment variable in .npmrc. --- .npmrc | 2 -- script/npm-publish.sh | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 .npmrc diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 17d1d57d8..000000000 --- a/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -@explorable-viz:registry=https://registry.npmjs.org/ -//registry.npmjs.org/:_authToken=${NPM_TOKEN} diff --git a/script/npm-publish.sh b/script/npm-publish.sh index f6e24fa6f..35ecc2228 100755 --- a/script/npm-publish.sh +++ b/script/npm-publish.sh @@ -2,4 +2,5 @@ # run from project root set -xe +npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" yarn publish --access public