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