Skip to content

Commit e08e585

Browse files
committed
workflow(release): update npmmirror via CLI & Web
1 parent 56e63fa commit e08e585

File tree

3 files changed

+104
-1
lines changed

3 files changed

+104
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"lodash-es": "latest",
9797
"lossless-json": "latest",
9898
"magicast": "latest",
99+
"open": "latest",
99100
"prompts": "latest",
100101
"semver": "latest",
101102
"simple-git-hooks": "latest",

pnpm-lock.yaml

Lines changed: 99 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/release.mts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type { SemVer } from 'semver'
77
import spawn from 'cross-spawn'
88
import { cyan } from 'kolorist'
99
import { deleteAsync } from 'del'
10+
import open from 'open'
1011

1112
const docsPath = ['./README.md', './docs/README.zh-CN.md']
1213

@@ -161,7 +162,9 @@ async function release() {
161162
return
162163
}
163164

164-
spawn.sync('cnpm', ['sync'], { stdio: 'inherit' })
165+
console.log(cyan('Updating npmmirror...'))
166+
spawn('cnpm', ['sync'], { stdio: 'inherit' })
167+
open(`https://npmmirror.com/sync/${name}`)
165168
}
166169

167170
try {

0 commit comments

Comments
 (0)