mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-07 14:02:48 +00:00
fix: make sure that npmrc is created in correct home directory
This commit is contained in:
@@ -43,7 +43,7 @@ package:
|
||||
- secrecy
|
||||
stage: deploy
|
||||
script:
|
||||
- echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > /root/.npmrc
|
||||
- echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- npm publish
|
||||
only:
|
||||
- /^v[0-9]+\.[0-9]+\.[0-9]+$/
|
||||
|
||||
@@ -628,7 +628,7 @@ export function getRules(configuration: Configuration): Rules {
|
||||
],
|
||||
stage: 'deploy',
|
||||
script: [
|
||||
'echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > /root/.npmrc',
|
||||
'echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc',
|
||||
'npm publish',
|
||||
],
|
||||
only: [
|
||||
|
||||
Reference in New Issue
Block a user