mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-26 03:38:29 +00:00
优化自动发布脚本
This commit is contained in:
parent
c84a6ae6d6
commit
721828e248
@ -307,7 +307,7 @@ if (extensionPath) {
|
|||||||
if (!DRYRUN) {
|
if (!DRYRUN) {
|
||||||
const sourceZipFile = new Zip();
|
const sourceZipFile = new Zip();
|
||||||
readdirSync(extensionPath, { withFileTypes: true })
|
readdirSync(extensionPath, { withFileTypes: true })
|
||||||
.filter(v => v.name !== "packages")
|
.filter(v => v.name !== "packages" && v.name !== ".git")
|
||||||
.forEach(v => {
|
.forEach(v => {
|
||||||
const path = join(v.path, v.name);
|
const path = join(v.path, v.name);
|
||||||
console.log("正在压缩", path);
|
console.log("正在压缩", path);
|
||||||
@ -474,8 +474,8 @@ if (needPublish) {
|
|||||||
|
|
||||||
// 手动发布新版本文档
|
// 手动发布新版本文档
|
||||||
await confirm({
|
await confirm({
|
||||||
message: `请使用命令 npm run docusaurus docs:version 1.1.0 创建新版本文档,并在 docs 目录执行 GIT_USER=<user_name> npm run deploy 发布`,
|
message: `请使用命令 npm run docusaurus docs:version 1.1.0 创建新版本文档,并在 docs 目录执行 USE_SSH=true GIT_USER=<user_name> npm run deploy 发布`,
|
||||||
default: true,
|
default: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
rmSync(masterTempPath, { recursive: true, force: true });
|
// rmSync(masterTempPath, { recursive: true, force: true });
|
||||||
|
Loading…
Reference in New Issue
Block a user