mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-23 03:11:26 +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:
|
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: https://registry.npmjs.org/:_authToken=$NPM_TOKEN
|
||||||
token:
|
# token:
|
||||||
from_secret: npm_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:
|
environment:
|
||||||
NPM_TOKEN:
|
NPM_TOKEN:
|
||||||
from_secret: npm_token
|
from_secret: npm_token
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/tags/*
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
|
|
@ -34,9 +34,6 @@
|
||||||
"typedoc-plugin-sourcefile-url": "^1.0.6",
|
"typedoc-plugin-sourcefile-url": "^1.0.6",
|
||||||
"typescript": "^4.5.2"
|
"typescript": "^4.5.2"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
|
||||||
"registry": "https://registry.npmjs.org/:_authToken=$NPM_TOKEN"
|
|
||||||
},
|
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{ts,tsx,js}": [
|
"*.{ts,tsx,js}": [
|
||||||
|
|
Loading…
Reference in a new issue