Skip to content

Commit 7803e65

Browse files
committed
Added public registry to check published version
Signed-off-by: Jeonghyuk Park <[email protected]>
1 parent a3413a0 commit 7803e65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ pipeline {
516516
echo "NEW_VERSION: ${NEW_VERSION}"
517517
// Retrieve released version from npmjs.org
518518
def RELEASED_VERSION = sh (
519-
script: 'npm view "$(echo "console.log(require(\'./package.json\').name);" | node)" version || true',
519+
script: 'npm view "$(echo "console.log(require(\'./package.json\').name);" | node)" version --registry ${NPM_REGISTRY} || true',
520520
returnStdout: true
521521
).trim()
522522
echo "RELEASED_VERSION: ${RELEASED_VERSION}"

0 commit comments

Comments
 (0)