Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 35d1b19

Browse files
committed
Removed sudo from npm-cli-login during publish
1 parent 46d8bed commit 35d1b19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ stage('Publish') {
109109
// 4. publish the build to NPM adding a snapshot tag if pre-release
110110
sh """
111111
${isReleaseVersion ? '' : ('npm version --no-git-tag-version ' + version + '.' + env.BUILD_ID)}
112-
sudo npm install -g npm-cli-login
113-
npm-cli-login
112+
npm install npm-cli-login
113+
./node_modules/.bin/npm-cli-login
114114
npm publish ${isReleaseVersion ? '' : '--tag snapshot'}
115115
"""
116116
}

0 commit comments

Comments
 (0)