mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-22 20:31:12 +00:00
Trying to publish with npm token 19
This commit is contained in:
parent
bb1e195a76
commit
cd27054f74
1 changed files with 7 additions and 4 deletions
11
.drone.yml
11
.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
|
||||
|
|
Loading…
Reference in a new issue