Compare commits

...

8 Commits

Author SHA1 Message Date
xiaojunnuo b30f02a1fb chore: 1 2026-05-22 00:06:55 +08:00
xiaojunnuo 7e2333a63a chore: 1 2026-05-22 00:06:18 +08:00
xiaojunnuo 0be66cccbc build: release 2026-05-21 23:48:39 +08:00
xiaojunnuo ed26ed196d build: publish 2026-05-21 23:26:57 +08:00
xiaojunnuo a204f270dd build: trigger build image 2026-05-21 23:26:51 +08:00
xiaojunnuo 7585d7bbd0 build: publish 2026-05-21 23:25:32 +08:00
xiaojunnuo 2981f086c8 build: trigger build image 2026-05-21 23:25:21 +08:00
xiaojunnuo 784ef8a6a4 chore: 1 2026-05-21 23:23:20 +08:00
23 changed files with 115 additions and 22 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ jobs:
# cache: 'npm'
# working-directory: ./packages/ui/certd-client
- run: |
npm install -g pnpm
npm install -g pnpm@10.33.4
pnpm install
npm run build
working-directory: ./packages/ui/certd-client
+1 -1
View File
@@ -46,7 +46,7 @@ jobs:
console.log("certd_version:",pkg.version);
return pkg.version
- run: |
npm install -g pnpm
npm install -g pnpm@10.33.4
pnpm install
npm run build
working-directory: ./packages/ui/certd-client
+1 -1
View File
@@ -35,7 +35,7 @@ jobs:
run: |
export GITEE_TOKEN=${{ secrets.GITEE_TOKEN }}
rm -rf ./pnpm*.yaml
npm install -g pnpm
npm install -g pnpm@10.33.4
pnpm install
npm run publish_to_gitee
working-directory: ./
+1 -1
View File
@@ -35,7 +35,7 @@ jobs:
run: |
export GITHUB_TOKEN=${{ secrets.GH_TOKEN }}
rm -rf ./pnpm*.yaml
npm install -g pnpm
npm install -g pnpm@10.33.4
pnpm install
npm run publish_to_github
working-directory: ./
+1 -1
View File
@@ -50,7 +50,7 @@ jobs:
# cache: 'npm'
# working-directory: ./packages/ui/certd-client
- run: |
npm install -g pnpm
npm install -g pnpm@10.33.4
pnpm install
npm run build
working-directory: ./packages/ui/certd-client
+2 -1
View File
@@ -32,4 +32,5 @@ test/**/*.js
test.js
.history
/logs
.pnpm-lock.yaml
.pnpm-lock.yaml
pnpm-lock.yaml
+10
View File
@@ -3,6 +3,16 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [1.40.3](https://github.com/certd/certd/compare/v1.40.2...v1.40.3) (2026-05-21)
### Bug Fixes
* 修复暗黑模式下注册页面验证码看不清的问题 ([5ba33be](https://github.com/certd/certd/commit/5ba33be30f765f06cafbfcc04f5e25320db01449))
### Performance Improvements
* 修复商业版套餐添加和修改时的字段显示 ([fb5b00d](https://github.com/certd/certd/commit/fb5b00d73f925036a65ce5003c57c1199578c34d))
## [1.40.2](https://github.com/certd/certd/compare/v1.40.1...v1.40.2) (2026-05-19)
### Bug Fixes
+2 -1
View File
@@ -20,6 +20,7 @@
"devb": "lerna run dev-build",
"i-all": "lerna link && lerna exec npm install ",
"publish": "pnpm run prepublishOnly2 && lerna publish --force-publish=pro/plus-core --conventional-commits && pnpm run afterpublishOnly ",
"publish2":" npm run pub_all && pnpm run afterpublishOnly",
"afterpublishOnly": "pnpm run copylogs && time /t >trigger/build.trigger && git add ./trigger/build.trigger && git commit -m \"build: trigger build image\" && TIMEOUT /T 10 && pnpm run commitAll",
"transform-sql": "cd ./packages/ui/certd-server/db/ && node --experimental-json-modules transform.js",
"plugin-doc-gen": "cd ./packages/ui/certd-server/ && pnpm run export-metadata",
@@ -39,7 +40,7 @@
"test:unit": "cross-env NODE_ENV=unittest pnpm -r --workspace-concurrency=1 run test:unit",
"pub": "echo 1",
"dev": "pnpm run -r --parallel compile ",
"pub_all":"pnpm run -r --parallel pub ",
"pub_all": "node ./scripts/pub-all.js",
"release": "time /t >trigger/release.trigger && git add trigger/release.trigger && git commit -m \"build: release\" && git push",
"publish_to_atomgit": "node --experimental-json-modules ./scripts/publish-atomgit.js",
"publish_to_gitee": "node --experimental-json-modules ./scripts/publish-gitee.js",
+1 -1
View File
@@ -76,5 +76,5 @@
"bugs": {
"url": "https://github.com/publishlab/node-acme-client/issues"
},
"gitHead": "678b70cee8510a2b5217788c5db9469f49cbd439"
"gitHead": "01c91ba294f88bd07fddf9358c4301bbb4027916"
}
+1 -1
View File
@@ -52,5 +52,5 @@
"tslib": "^2.8.1",
"typescript": "^5.4.2"
},
"gitHead": "678b70cee8510a2b5217788c5db9469f49cbd439"
"gitHead": "01c91ba294f88bd07fddf9358c4301bbb4027916"
}
+1 -1
View File
@@ -49,5 +49,5 @@
"tslib": "^2.8.1",
"typescript": "^5.4.2"
},
"gitHead": "678b70cee8510a2b5217788c5db9469f49cbd439"
"gitHead": "01c91ba294f88bd07fddf9358c4301bbb4027916"
}
+1 -1
View File
@@ -27,5 +27,5 @@
"prettier": "^2.8.8",
"tslib": "^2.8.1"
},
"gitHead": "678b70cee8510a2b5217788c5db9469f49cbd439"
"gitHead": "01c91ba294f88bd07fddf9358c4301bbb4027916"
}
+1 -1
View File
@@ -34,5 +34,5 @@
"tslib": "^2.8.1",
"typescript": "^5.4.2"
},
"gitHead": "678b70cee8510a2b5217788c5db9469f49cbd439"
"gitHead": "01c91ba294f88bd07fddf9358c4301bbb4027916"
}
+1 -1
View File
@@ -59,5 +59,5 @@
"fetch"
]
},
"gitHead": "678b70cee8510a2b5217788c5db9469f49cbd439"
"gitHead": "01c91ba294f88bd07fddf9358c4301bbb4027916"
}
+1 -1
View File
@@ -36,5 +36,5 @@
"tslib": "^2.8.1",
"typescript": "^5.4.2"
},
"gitHead": "678b70cee8510a2b5217788c5db9469f49cbd439"
"gitHead": "01c91ba294f88bd07fddf9358c4301bbb4027916"
}
+1 -1
View File
@@ -69,5 +69,5 @@
"typeorm": "^0.3.11",
"typescript": "^5.4.2"
},
"gitHead": "678b70cee8510a2b5217788c5db9469f49cbd439"
"gitHead": "01c91ba294f88bd07fddf9358c4301bbb4027916"
}
+1 -1
View File
@@ -49,5 +49,5 @@
"typeorm": "^0.3.11",
"typescript": "^5.4.2"
},
"gitHead": "678b70cee8510a2b5217788c5db9469f49cbd439"
"gitHead": "01c91ba294f88bd07fddf9358c4301bbb4027916"
}
+1 -1
View File
@@ -41,5 +41,5 @@
"tslib": "^2.8.1",
"typescript": "^5.4.2"
},
"gitHead": "678b70cee8510a2b5217788c5db9469f49cbd439"
"gitHead": "01c91ba294f88bd07fddf9358c4301bbb4027916"
}
+1 -1
View File
@@ -61,5 +61,5 @@
"tslib": "^2.8.1",
"typescript": "^5.4.2"
},
"gitHead": "678b70cee8510a2b5217788c5db9469f49cbd439"
"gitHead": "01c91ba294f88bd07fddf9358c4301bbb4027916"
}
+81
View File
@@ -0,0 +1,81 @@
import childProcess from "child_process";
import fs from "fs";
import path from "path";
function run(command, args, options = {}) {
const result = childProcess.spawnSync(command, args, {
stdio: options.stdio ?? "pipe",
shell: process.platform === "win32",
encoding: "utf-8",
...options,
});
if (result.error) {
throw result.error;
}
return result;
}
function printOutput(result) {
if (result.stdout) {
process.stdout.write(result.stdout);
}
if (result.stderr) {
process.stderr.write(result.stderr);
}
}
function isAlreadyPublishedError(result) {
const output = `${result.stdout ?? ""}\n${result.stderr ?? ""}`;
return output.includes("You cannot publish over the previously published versions");
}
function getWorkspacePackages() {
const result = run("pnpm", ["list", "-r", "--depth", "-1", "--json"], {
stdio: "pipe",
});
if (result.status !== 0) {
console.error(result.stderr);
throw new Error("获取 workspace 包列表失败");
}
return JSON.parse(result.stdout);
}
function hasPubScript(packagePath) {
const packageJsonPath = path.join(packagePath, "package.json");
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8"));
return Boolean(packageJson.scripts?.pub);
}
const packages = getWorkspacePackages().filter(item => item.name !== "root");
let skippedCount = 0;
let alreadyPublishedCount = 0;
for (const item of packages) {
const packagePath = item.path;
if (!hasPubScript(packagePath)) {
skippedCount++;
console.log(`[pub_all] 跳过 ${item.name},未定义 pub 脚本`);
continue;
}
console.log(`\n[pub_all] 开始发布 ${item.name}`);
const result = run("pnpm", ["--dir", packagePath, "run", "pub"]);
printOutput(result);
if (result.status === 0) {
console.log(`[pub_all] ${item.name} 发布完成`);
} else if (isAlreadyPublishedError(result)) {
alreadyPublishedCount++;
console.warn(`[pub_all] ${item.name} 当前版本已发布,继续发布其他包`);
} else {
console.error(`[pub_all] ${item.name} 发布失败,停止发布`);
process.exit(result.status ?? 1);
}
}
console.log(`\n[pub_all] 发布任务完成,跳过 ${skippedCount} 个未定义 pub 脚本的包,${alreadyPublishedCount} 个包版本已存在`);
+2 -2
View File
@@ -38,8 +38,8 @@ while true; do
done
echo "安装pnpm, 前提是已经安装了nodejs"
$SUDO_CMD npm install -g pnpm --registry https://registry.npmmirror.com
echo "安装pnpm@10.33.4, 前提是已经安装了nodejs"
$SUDO_CMD npm install -g pnpm@10.33.4 --registry https://registry.npmmirror.com
echo "安装依赖"
$SUDO_CMD pnpm install --registry https://registry.npmmirror.com
+1 -1
View File
@@ -1 +1 @@
00:40
23:26
+1 -1
View File
@@ -1 +1 @@
01:06
23:48