mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-15 02:43:08 +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) => {
|
||||
try {
|
||||
// 切换到项目根目录
|
||||
process.chdir(path.resolve(__dirname, '..'))
|
||||
|
||||
// 需要将tag标签内容置为 latest
|
||||
process.env.npm_config_tag = 'latest';
|
||||
console.log(execSync('npm publish').toString());
|
||||
done();
|
||||
process.env.npm_config_tag = 'latest'
|
||||
console.log(execSync('npm publish').toString())
|
||||
done()
|
||||
} catch (error) {
|
||||
console.error('发布失败:', error.message);
|
||||
done(error);
|
||||
console.error('发布失败:', error.message)
|
||||
done(error)
|
||||
}
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user