Trying to publish with npm token 9

This commit is contained in:
Dessalines 2022-01-09 11:01:32 -05:00
parent e4387d57cf
commit b698ad1c1e
2 changed files with 22 additions and 17 deletions

View file

@ -18,23 +18,31 @@ steps:
commands: commands:
- yarn lint - yarn lint
- name: npm # - name: npm
image: plugins/npm # image: plugins/npm
settings: # settings:
username: # username:
from_secret: npm_username # from_secret: npm_username
password: # password:
from_secret: npm_password # from_secret: npm_password
email: tyhou13@gmx.com # email: tyhou13@gmx.com
registry: https://registry.npmjs.org/:_authToken=$NPM_TOKEN # registry: https://registry.npmjs.org/:_authToken=$NPM_TOKEN
token: # token:
from_secret: npm_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: environment:
NPM_TOKEN: NPM_TOKEN:
from_secret: npm_token from_secret: npm_token
when:
ref:
- refs/tags/*
--- ---
kind: pipeline kind: pipeline

View file

@ -34,9 +34,6 @@
"typedoc-plugin-sourcefile-url": "^1.0.6", "typedoc-plugin-sourcefile-url": "^1.0.6",
"typescript": "^4.5.2" "typescript": "^4.5.2"
}, },
"publishConfig": {
"registry": "https://registry.npmjs.org/:_authToken=$NPM_TOKEN"
},
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"lint-staged": { "lint-staged": {
"*.{ts,tsx,js}": [ "*.{ts,tsx,js}": [