Skip to content

Commit b4e8473

Browse files
committed
chore: update
1 parent efeba87 commit b4e8473

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/changelog/src/utils/github.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { $fetch } from 'ofetch'
2+
import { cyan, green, red, yellow } from 'kolorist'
23
import qs from 'qs'
3-
import { vipColor } from '@142vip/utils'
44
import type {
55
AuthorInfo,
66
ChangelogOptions,
@@ -36,7 +36,7 @@ export async function sendRelease(
3636
prerelease: options.prerelease,
3737
tag_name: options.to,
3838
}
39-
console.log(vipColor.cyan(method === 'POST'
39+
console.log(cyan(method === 'POST'
4040
? 'Creating release notes...'
4141
: 'Updating release notes...'),
4242
)
@@ -45,7 +45,7 @@ export async function sendRelease(
4545
body: JSON.stringify(body),
4646
headers,
4747
})
48-
console.log(vipColor.green(`Released on ${res.html_url}`))
48+
console.log(green(`Released on ${res.html_url}`))
4949
}
5050

5151
function getHeaders(options: ChangelogOptions) {
@@ -172,9 +172,9 @@ export function generateWebUrl(config: any, markdown: string) {
172172
*/
173173
export function printUrl(webUrl: string, success: boolean = true) {
174174
if (success) {
175-
console.error(`\n${vipColor.yellow('使用以下链接手动发布新的版本:')}\n${vipColor.yellow(webUrl)}\n`)
175+
console.error(`\n${yellow('使用以下链接手动发布新的版本:')}\n${yellow(webUrl)}\n`)
176176
}
177177
else {
178-
console.error(`\n${vipColor.red('无法创建发布。使用以下链接手动创建:')}\n${vipColor.yellow(webUrl)}\n`)
178+
console.error(`\n${red('无法创建发布。使用以下链接手动创建:')}\n${yellow(webUrl)}\n`)
179179
}
180180
}

0 commit comments

Comments
 (0)