Skip to content

Commit b5f0edb

Browse files
committed
workflow: inline 'registry' argument of 'npm publish'
1 parent 8318d88 commit b5f0edb

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,5 @@
107107
"*.md": "case-police --fix",
108108
"docs/README.zh-CN.md": "zhlint --fix",
109109
"*": "eslint --cache --ignore-pattern 'demo/' --fix"
110-
},
111-
"publishConfig": {
112-
"registry": "https://registry.npmjs.org"
113110
}
114111
}

scripts/release.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async function release() {
7979
fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 2))
8080

8181
console.log(cyan('Publishing...'))
82-
const { status } = await spawn.sync('npm publish', undefined, { stdio: 'inherit' })
82+
const { status } = await spawn.sync('npm publish --registry=https://registry.npmjs.org', undefined, { stdio: 'inherit' })
8383
if (status === 1) {
8484
// 恢复版本号
8585
pkg.version = currentVersion

0 commit comments

Comments
 (0)