mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-15 13:09:40 +08:00
1.3.5
This commit is contained in:
parent
a1b8bbb96c
commit
256466e54a
13
gulpfile.js
13
gulpfile.js
@ -131,13 +131,16 @@ task('zip', () => {
|
|||||||
|
|
||||||
task('publish', (done) => {
|
task('publish', (done) => {
|
||||||
try {
|
try {
|
||||||
|
// 切换到项目根目录
|
||||||
|
process.chdir(path.resolve(__dirname, '..'))
|
||||||
|
|
||||||
// 需要将tag标签内容置为 latest
|
// 需要将tag标签内容置为 latest
|
||||||
process.env.npm_config_tag = 'latest';
|
process.env.npm_config_tag = 'latest'
|
||||||
console.log(execSync('npm publish').toString());
|
console.log(execSync('npm publish').toString())
|
||||||
done();
|
done()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('发布失败:', error.message);
|
console.error('发布失败:', error.message)
|
||||||
done(error);
|
done(error)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user