mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-22 19:01:27 +00:00
Trying to publish with npm token 9
This commit is contained in:
parent
e4387d57cf
commit
b698ad1c1e
2 changed files with 22 additions and 17 deletions
36
.drone.yml
36
.drone.yml
|
@ -18,23 +18,31 @@ steps:
|
|||
commands:
|
||||
- yarn lint
|
||||
|
||||
- name: npm
|
||||
image: plugins/npm
|
||||
settings:
|
||||
username:
|
||||
from_secret: npm_username
|
||||
password:
|
||||
from_secret: npm_password
|
||||
email: tyhou13@gmx.com
|
||||
registry: https://registry.npmjs.org/:_authToken=$NPM_TOKEN
|
||||
token:
|
||||
from_secret: npm_token
|
||||
# - name: npm
|
||||
# image: plugins/npm
|
||||
# settings:
|
||||
# username:
|
||||
# from_secret: npm_username
|
||||
# password:
|
||||
# from_secret: npm_password
|
||||
# email: tyhou13@gmx.com
|
||||
# registry: https://registry.npmjs.org/:_authToken=$NPM_TOKEN
|
||||
# token:
|
||||
# from_secret: npm_token
|
||||
# environment:
|
||||
# NPM_TOKEN:
|
||||
# from_secret: npm_token
|
||||
# when:
|
||||
# ref:
|
||||
# - refs/tags/*
|
||||
- name: npm publish
|
||||
image: 17-alpine
|
||||
commands:
|
||||
- npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
|
||||
- npm publish
|
||||
environment:
|
||||
NPM_TOKEN:
|
||||
from_secret: npm_token
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/*
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
|
|
|
@ -34,9 +34,6 @@
|
|||
"typedoc-plugin-sourcefile-url": "^1.0.6",
|
||||
"typescript": "^4.5.2"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npmjs.org/:_authToken=$NPM_TOKEN"
|
||||
},
|
||||
"types": "./dist/index.d.ts",
|
||||
"lint-staged": {
|
||||
"*.{ts,tsx,js}": [
|
||||
|
|
Loading…
Reference in a new issue