From cd27054f7445a1a263bedf07610df4c43a7f6829 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 9 Jan 2022 11:28:28 -0500 Subject: [PATCH] Trying to publish with npm token 19 --- .drone.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index d4e3f6e..92d032e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,13 +39,16 @@ steps: image: node:17-alpine commands: - - npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN" - - echo "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc + # - npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN" + # - echo "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc + # - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc + echo "_auth = $NPM_AUTH_TOKEN" > ~/.npmrc + echo "email = $NPM_EMAIL" >> ~/.npmrc - npm publish environment: - NPM_TOKEN: + NPM_AUTH_TOKEN: from_secret: npm_token + NPM_EMAIL: tyhou13@gmx.com --- kind: pipeline