fix(ci): correct private SDK publish step — remove bad || exit 0
On Windows bat, 'cmd || exit 0' exits the script on failure, preventing the package.json swap and private publish from running. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
这个提交包含在:
父节点
0bfcb4502f
当前提交
c2c9ea4e36
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -85,8 +85,8 @@ pipeline {
|
||||
withCredentials([usernamePassword(credentialsId: 'NEXUS_CREDS', passwordVariable: 'NPM_PASS', usernameVariable: 'NPM_USER')]) {
|
||||
bat """
|
||||
powershell -NonInteractive -Command "Set-Content .npmrc ('//nexus.xuqinmin.com/repository/npm-hosted/:_auth=' + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(\$env:NPM_USER + ':' + \$env:NPM_PASS))) -Encoding ASCII"
|
||||
npm publish --userconfig .npmrc --registry %NEXUS_REGISTRY% --pack-destination dist-private-tmp || exit 0
|
||||
node -e "const fs=require('fs'); const p=JSON.parse(fs.readFileSync('package.private.json')); fs.writeFileSync('package.json.bak', fs.readFileSync('package.json')); fs.writeFileSync('package.json', JSON.stringify(p,null,2));"
|
||||
copy package.json package.json.bak
|
||||
copy package.private.json package.json
|
||||
npm publish --registry %NEXUS_REGISTRY%
|
||||
move /Y package.json.bak package.json
|
||||
"""
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户