From 417f017f45ea456756460b967faa63113c71d808 Mon Sep 17 00:00:00 2001 From: Brandon Watson Date: Fri, 27 Jan 2023 16:06:31 -0600 Subject: [PATCH] Using command line to publish libs WIP WIP --- .drone.yml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.drone.yml b/.drone.yml index 316da25..2f47754 100644 --- a/.drone.yml +++ b/.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