diff --git a/.drone.yml b/.drone.yml index f6de834..421c082 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,23 +18,31 @@ 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: https://registry.npmjs.org/:_authToken=$NPM_TOKEN - token: - from_secret: npm_token + # - name: npm + # image: plugins/npm + # settings: + # username: + # from_secret: npm_username + # password: + # from_secret: npm_password + # email: tyhou13@gmx.com + # registry: https://registry.npmjs.org/:_authToken=$NPM_TOKEN + # token: + # from_secret: npm_token + # environment: + # NPM_TOKEN: + # from_secret: npm_token + # when: + # ref: + # - refs/tags/* + - name: npm publish + image: 17-alpine + commands: + - npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} + - npm publish environment: NPM_TOKEN: from_secret: npm_token - when: - ref: - - refs/tags/* --- kind: pipeline diff --git a/package.json b/package.json index 6821a28..2ef166e 100644 --- a/package.json +++ b/package.json @@ -34,9 +34,6 @@ "typedoc-plugin-sourcefile-url": "^1.0.6", "typescript": "^4.5.2" }, - "publishConfig": { - "registry": "https://registry.npmjs.org/:_authToken=$NPM_TOKEN" - }, "types": "./dist/index.d.ts", "lint-staged": { "*.{ts,tsx,js}": [