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 - master
- name: publish pre - name: publish pre
image: plugins/npm:latest image: node
settings: environment:
username:
from_secret: npm_username
password:
from_secret: npm_password
token: token:
from_secret: npm_token from_secret: npm_token
email: b.watson@watsonlabs.net commands:
registry: "https://gitea.watsonlabs.net" - 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: when:
event: event:
exclude: exclude:
@ -48,16 +46,14 @@ steps:
- master - master
- name: publish tagged version - name: publish tagged version
image: plugins/npm:latest image: node
settings: environment:
username:
from_secret: npm_username
password:
from_secret: npm_password
token: token:
from_secret: npm_token from_secret: npm_token
email: b.watson@watsonlabs.net commands:
registry: "http://10.44.1.6:4873/" - 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: when:
event: event:
- tag - tag