mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2025-01-10 20:15:53 +00:00
Trying to publish with npm token 23
This commit is contained in:
parent
0dabf969ab
commit
0b2eeca299
1 changed files with 26 additions and 30 deletions
56
.drone.yml
56
.drone.yml
|
@ -18,37 +18,33 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- yarn lint
|
- yarn lint
|
||||||
|
|
||||||
# - name: npm
|
- name: npm
|
||||||
# image: plugins/npm
|
image: plugins/npm
|
||||||
# settings:
|
settings:
|
||||||
# username:
|
username:
|
||||||
# from_secret: npm_username
|
from_secret: npm_username
|
||||||
# password:
|
password:
|
||||||
# from_secret: npm_password
|
from_secret: npm_password
|
||||||
# email: tyhou13@gmx.com
|
email: tyhou13@gmx.com
|
||||||
# registry: https://registry.npmjs.org/:_authToken=$NPM_TOKEN
|
registry: //registry.npmjs.org/:_authToken=$NPM_TOKEN
|
||||||
# token:
|
token:
|
||||||
# from_secret: npm_token
|
|
||||||
# environment:
|
|
||||||
# NPM_TOKEN:
|
|
||||||
# from_secret: npm_token
|
|
||||||
# when:
|
|
||||||
# ref:
|
|
||||||
# - refs/tags/*
|
|
||||||
- name: npm publish
|
|
||||||
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_AUTH_TOKEN" >> .npmrc
|
|
||||||
# - echo "_auth = $NPM_AUTH_TOKEN" > ~/.npmrc
|
|
||||||
- echo "email = $NPM_EMAIL" >> ~/.npmrc
|
|
||||||
- npm publish
|
|
||||||
environment:
|
|
||||||
NPM_AUTH_TOKEN:
|
|
||||||
from_secret: npm_token
|
from_secret: npm_token
|
||||||
NPM_EMAIL: tyhou13@gmx.com
|
environment:
|
||||||
|
NPM_TOKEN:
|
||||||
|
from_secret: npm_token
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
- refs/tags/*
|
||||||
|
# - name: npm publish
|
||||||
|
# image: node:17-alpine
|
||||||
|
# commands:
|
||||||
|
# - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> .npmrc
|
||||||
|
# - echo "email = $NPM_EMAIL" >> ~/.npmrc
|
||||||
|
# - npm publish
|
||||||
|
# environment:
|
||||||
|
# NPM_AUTH_TOKEN:
|
||||||
|
# from_secret: npm_token
|
||||||
|
# NPM_EMAIL: tyhou13@gmx.com
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
|
Loading…
Reference in a new issue