diff --git a/.drone.yml b/.drone.yml index 8105b1d..1f0caa1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,33 +18,19 @@ steps: commands: - yarn lint - - name: npm - image: plugins/npm - settings: - username: - from_secret: npm_username - password: - from_secret: npm_password - email: tyhou13@gmx.com - registry: //registry.npmjs.org/:_authToken=$NPM_TOKEN - token: - from_secret: npm_token + - name: npm publish + image: node:17-alpine + commands: + - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> .npmrc + - echo "email = $NPM_EMAIL" >> ~/.npmrc + - npm publish environment: - NPM_TOKEN: + NPM_AUTH_TOKEN: from_secret: npm_token + NPM_EMAIL: tyhou13@gmx.com when: ref: - refs/tags/* - # - name: npm publish - # image: node:17-alpine - # commands: - # - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> .npmrc - # - echo "email = $NPM_EMAIL" >> ~/.npmrc - # - npm publish - # environment: - # NPM_AUTH_TOKEN: - # from_secret: npm_token - # NPM_EMAIL: tyhou13@gmx.com --- kind: pipeline