fix: make sure that npmrc is created in correct home directory

This commit is contained in:
Karl-Philipp Wulfert
2019-05-24 14:13:48 +02:00
parent 9a2eaa4f3d
commit 60f7e4cae2
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ package:
- secrecy - secrecy
stage: deploy stage: deploy
script: script:
- echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > /root/.npmrc - echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
- npm publish - npm publish
only: only:
- /^v[0-9]+\.[0-9]+\.[0-9]+$/ - /^v[0-9]+\.[0-9]+\.[0-9]+$/

View File

@@ -628,7 +628,7 @@ export function getRules(configuration: Configuration): Rules {
], ],
stage: 'deploy', stage: 'deploy',
script: [ script: [
'echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > /root/.npmrc', 'echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc',
'npm publish', 'npm publish',
], ],
only: [ only: [