Using command line to publish libs
WIP WIP
This commit is contained in:
parent
9cf8ef3c60
commit
417f017f45
28
.drone.yml
28
.drone.yml
@ -28,16 +28,14 @@ steps:
|
||||
- master
|
||||
|
||||
- name: publish pre
|
||||
image: plugins/npm:latest
|
||||
settings:
|
||||
username:
|
||||
from_secret: npm_username
|
||||
password:
|
||||
from_secret: npm_password
|
||||
image: node
|
||||
environment:
|
||||
token:
|
||||
from_secret: npm_token
|
||||
email: b.watson@watsonlabs.net
|
||||
registry: "https://gitea.watsonlabs.net"
|
||||
commands:
|
||||
- npm config set @watsonb8:registry https://gitea.watsonlabs.net/api/packages/watsonb8/npm/
|
||||
- npm config set -- '//gitea.watsonlabs.net/api/packages/watsonb8/npm/:_authToken' "$token"
|
||||
- npm publish
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
@ -48,16 +46,14 @@ steps:
|
||||
- master
|
||||
|
||||
- name: publish tagged version
|
||||
image: plugins/npm:latest
|
||||
settings:
|
||||
username:
|
||||
from_secret: npm_username
|
||||
password:
|
||||
from_secret: npm_password
|
||||
image: node
|
||||
environment:
|
||||
token:
|
||||
from_secret: npm_token
|
||||
email: b.watson@watsonlabs.net
|
||||
registry: "http://10.44.1.6:4873/"
|
||||
commands:
|
||||
- npm config set @watsonb8:registry https://gitea.watsonlabs.net/api/packages/watsonb8/npm/
|
||||
- npm config set -- '//gitea.watsonlabs.net/api/packages/watsonb8/npm/:_authToken' "$token"
|
||||
- npm publish
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
Loading…
Reference in New Issue
Block a user