Using command line to publish libs
Some checks failed
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is failing

WIP

WIP
This commit is contained in:
Brandon Watson 2023-01-27 16:06:31 -06:00
parent 9cf8ef3c60
commit 417f017f45

View File

@ -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