Trying to publish with npm token 19

This commit is contained in:
Dessalines 2022-01-09 11:28:28 -05:00
parent bb1e195a76
commit cd27054f74

View file

@ -39,13 +39,16 @@ steps:
image: node:17-alpine image: node:17-alpine
commands: commands:
- npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN" # - npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN"
- echo "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc # - echo "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- echo '//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 - npm publish
environment: environment:
NPM_TOKEN: NPM_AUTH_TOKEN:
from_secret: npm_token from_secret: npm_token
NPM_EMAIL: tyhou13@gmx.com
--- ---
kind: pipeline kind: pipeline