Skip to content

Commit

Permalink
feat: 测试 CD 场景
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyi2 committed Oct 19, 2023
1 parent 4be0ae0 commit 7ba9596
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 29 deletions.
15 changes: 8 additions & 7 deletions build/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,14 @@ class Release extends Base {
);
process.exit(1);
}
// 确保当前的 master 分支的文件没有变更
const status = await git.status();
console.log("status: ", status);
if (status?.files?.length) {
this.logError("[发布失败]: 不允许更改本地 master 代码!");
process.exit(1);
}
// 确保当前的 master 分支的文件没有变更(CD 流程需要自动生成 API 文档信息,因此会产生变更,这里跳过检测)
// TODO:
// const status = await git.status();
// console.log("status: ", status);
// if (status?.files?.length) {
// this.logError("[发布失败]: 不允许更改本地 master 代码!");
// process.exit(1);
// }
// 确保当前 master 分支的代码和远程代码一致(防止本地偷偷发布没有 Code Review 的代码)
// 有没有其他方式可以比较本地 master 和远程 master 分支是一致的?
const { stdout } = shell.exec("git diff origin/master master", {
Expand Down
72 changes: 50 additions & 22 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
## <small>1.0.6 (2023-10-09)</small>
## <small>1.1.4 (2023-10-19)</small>

* 工具(工程设计): .cz-config.js ([64b1641](https://github.com/ziyi2/micro-framework/commit/64b1641))
* 工具(工程设计): commitlint ([be38c64](https://github.com/ziyi2/micro-framework/commit/be38c64))
* 工具(框架原理): vuePress 结合 TypeDoc ([507a7bc](https://github.com/ziyi2/micro-framework/commit/507a7bc))
* 开发中(工程设计): github Actions 的 CI 设计 ([427c942](https://github.com/ziyi2/micro-framework/commit/427c942))
* 特性(工程设计): 定制 cz ([9cc8fef](https://github.com/ziyi2/micro-framework/commit/9cc8fef))
* 特性(工程设计): 新增 commitlint ([c03edc3](https://github.com/ziyi2/micro-framework/commit/c03edc3))
* 特性(工程设计): 新增 chagelog ([f77bc9a](https://github.com/ziyi2/micro-framework/commit/f77bc9a))
* 特性(工程设计): 新增 Github Actions 单元测试 ([badfc8e](https://github.com/ziyi2/micro-framework/commit/badfc8e))
* 特性(工程设计): 新增 Jest 单元测试 ([f94a214](https://github.com/ziyi2/micro-framework/commit/f94a214))
* 特性(工程设计): 新增 Jest 的 ESLint 配置 ([2356144](https://github.com/ziyi2/micro-framework/commit/2356144))
* 特性(工程设计): 新增 Jest 的发布前检测处理 ([720b786](https://github.com/ziyi2/micro-framework/commit/720b786))
* 特性(工程设计): 新增 Jest 的提交钩子,确保测试通过才能进行代码提交 ([c0fcac6](https://github.com/ziyi2/micro-framework/commit/c0fcac6))
* 特性(工程设计): 新增 TypeDoc,用于自动生成 API 文档 ([7d701d9](https://github.com/ziyi2/micro-framework/commit/7d701d9))
* 特性(工程设计): 新增 VuePress 文档站点生成器,用于快速生成框架的开发指南 ([06a9191](https://github.com/ziyi2/micro-framework/commit/06a9191))
* 文档(工程设计): 新增 Github Actions 的注释说明 ([6a8209a](https://github.com/ziyi2/micro-framework/commit/6a8209a))
* 文档(工程设计): jest 运行说明 ([6f9b97d](https://github.com/ziyi2/micro-framework/commit/6f9b97d))
* 文档(工程设计): rEADME.md ([ee25d33](https://github.com/ziyi2/micro-framework/commit/ee25d33))
* 修复(工程设计): 固定工具版本 ([6971470](https://github.com/ziyi2/micro-framework/commit/6971470))
* feat(工程化): 新增 cz ([4af13e5](https://github.com/ziyi2/micro-framework/commit/4af13e5))
* npm micro demo ([d182af3](https://github.com/ziyi2/micro-framework/commit/d182af3))
* docs(readme.md): 新增 README.md 说明 ([7328a77](https://github.com/ziyi2/micro-framework/commit/7328a77))
* feat: 测试 CD 场景 ([4be0ae0](https://github.com/ziyi2/micro-framework/commit/4be0ae0))
* feat: 测试 CD 场景 ([1ca8a51](https://github.com/ziyi2/micro-framework/commit/1ca8a51))
* feat: 测试 CD 场景 ([839a216](https://github.com/ziyi2/micro-framework/commit/839a216))
* feat: 测试 CD 场景 ([68e2668](https://github.com/ziyi2/micro-framework/commit/68e2668))
* feat: 测试 CD 场景 ([abf6e79](https://github.com/ziyi2/micro-framework/commit/abf6e79))
* feat: 测试 CD 场景 ([909b26f](https://github.com/ziyi2/micro-framework/commit/909b26f))
* feat: 测试 CD 场景 ([4a8a627](https://github.com/ziyi2/micro-framework/commit/4a8a627))
* feat: 测试 CD 场景 ([681f5ee](https://github.com/ziyi2/micro-framework/commit/681f5ee))
* feat: 测试 CD 场景 ([e774668](https://github.com/ziyi2/micro-framework/commit/e774668))
* feat: 测试 CD 场景 ([ec14e30](https://github.com/ziyi2/micro-framework/commit/ec14e30))
* feat: 测试 CD 场景 ([f450afb](https://github.com/ziyi2/micro-framework/commit/f450afb))
* feat: 测试 CD 场景 ([6a154f9](https://github.com/ziyi2/micro-framework/commit/6a154f9))
* feat: 测试 CD 场景 ([facdaec](https://github.com/ziyi2/micro-framework/commit/facdaec))
* feat: 测试 CD 场景 ([8ba2bb7](https://github.com/ziyi2/micro-framework/commit/8ba2bb7))
* feat: 测试 CD 场景 ([68cb09d](https://github.com/ziyi2/micro-framework/commit/68cb09d))
* feat: 测试 CD 场景 ([8fabec9](https://github.com/ziyi2/micro-framework/commit/8fabec9))
* feat: 测试 CD 场景 ([d0b5aac](https://github.com/ziyi2/micro-framework/commit/d0b5aac))
* feat: 测试 CD 场景 ([cc7a4e1](https://github.com/ziyi2/micro-framework/commit/cc7a4e1))
* feat: 测试 CD 场景 ([a0d9f8d](https://github.com/ziyi2/micro-framework/commit/a0d9f8d))
* feat: 测试 CD 场景 ([057940b](https://github.com/ziyi2/micro-framework/commit/057940b))
* feat: 测试 CI 失败场景 ([f560124](https://github.com/ziyi2/micro-framework/commit/f560124))
* feat: 实现 CommonJS 规范的按需加载 ([9a4b7d2](https://github.com/ziyi2/micro-framework/commit/9a4b7d2))
* feat: 实现 CommonJS 规范的按需加载 ([2f83aed](https://github.com/ziyi2/micro-framework/commit/2f83aed))
* feat: 实现 CommonJS 规范的按需加载 ([299afae](https://github.com/ziyi2/micro-framework/commit/299afae))
* feat: 实现 CommonJS 规范的按需加载 ([d2ce60e](https://github.com/ziyi2/micro-framework/commit/d2ce60e))
* feat: 新增 ESLint 配置 ([d7828f9](https://github.com/ziyi2/micro-framework/commit/d7828f9))
* feat: 新增 ESLint 依赖 ([8052d8f](https://github.com/ziyi2/micro-framework/commit/8052d8f))
* feat: 新增 Github Actions 示例 ([f3a622c](https://github.com/ziyi2/micro-framework/commit/f3a622c))
* feat: 新增 gulp 构建 ([56ecae4](https://github.com/ziyi2/micro-framework/commit/56ecae4))
* feat: 新增 Prettier 配置 ([be5aa9a](https://github.com/ziyi2/micro-framework/commit/be5aa9a))
* feat: 新增 Prettier 配置 ([7872617](https://github.com/ziyi2/micro-framework/commit/7872617))
Expand Down Expand Up @@ -57,6 +58,33 @@
* feat: npm-micro-demo ([ccf66c8](https://github.com/ziyi2/micro-framework/commit/ccf66c8))
* feat: web 应用构建示例 ([897ee29](https://github.com/ziyi2/micro-framework/commit/897ee29))
* feat: web 应用构建示例 ([d156bc2](https://github.com/ziyi2/micro-framework/commit/d156bc2))
* 工具(工程设计): .cz-config.js ([64b1641](https://github.com/ziyi2/micro-framework/commit/64b1641))
* 工具(工程设计): commitlint ([be38c64](https://github.com/ziyi2/micro-framework/commit/be38c64))
* 工具(框架原理): vuePress 结合 TypeDoc ([507a7bc](https://github.com/ziyi2/micro-framework/commit/507a7bc))
* 开发中(工程设计): github Actions 的 CI 设计 ([427c942](https://github.com/ziyi2/micro-framework/commit/427c942))
* 特性(工程设计): 定制 cz ([9cc8fef](https://github.com/ziyi2/micro-framework/commit/9cc8fef))
* 特性(工程设计): 新增 commitlint ([c03edc3](https://github.com/ziyi2/micro-framework/commit/c03edc3))
* 特性(工程设计): 新增 chagelog ([f77bc9a](https://github.com/ziyi2/micro-framework/commit/f77bc9a))
* 特性(工程设计): 新增 CI 设计流程 ([c423972](https://github.com/ziyi2/micro-framework/commit/c423972))
* 特性(工程设计): 新增 Github Actions 单元测试 ([badfc8e](https://github.com/ziyi2/micro-framework/commit/badfc8e))
* 特性(工程设计): 新增 Jest 单元测试 ([f94a214](https://github.com/ziyi2/micro-framework/commit/f94a214))
* 特性(工程设计): 新增 Jest 的 ESLint 配置 ([2356144](https://github.com/ziyi2/micro-framework/commit/2356144))
* 特性(工程设计): 新增 Jest 的发布前检测处理 ([720b786](https://github.com/ziyi2/micro-framework/commit/720b786))
* 特性(工程设计): 新增 Jest 的提交钩子,确保测试通过才能进行代码提交 ([c0fcac6](https://github.com/ziyi2/micro-framework/commit/c0fcac6))
* 特性(工程设计): 新增 PR 的 CI 流程设计 ([6900b10](https://github.com/ziyi2/micro-framework/commit/6900b10))
* 特性(工程设计): 新增 TypeDoc,用于自动生成 API 文档 ([7d701d9](https://github.com/ziyi2/micro-framework/commit/7d701d9))
* 特性(工程设计): 新增 VuePress 文档站点生成器,用于快速生成框架的开发指南 ([06a9191](https://github.com/ziyi2/micro-framework/commit/06a9191))
* 特性(工程设计): cD 流程中新增上传测试覆盖率报告 ([8dda614](https://github.com/ziyi2/micro-framework/commit/8dda614))
* 文档(工程设计): 新增 Github Actions 的注释说明 ([6a8209a](https://github.com/ziyi2/micro-framework/commit/6a8209a))
* 文档(工程设计): cI 说明变更 ([613e8bd](https://github.com/ziyi2/micro-framework/commit/613e8bd))
* 文档(工程设计): jest 运行说明 ([6f9b97d](https://github.com/ziyi2/micro-framework/commit/6f9b97d))
* 文档(工程设计): rEADME.md ([ee25d33](https://github.com/ziyi2/micro-framework/commit/ee25d33))
* 修复(工程设计): 固定工具版本 ([6971470](https://github.com/ziyi2/micro-framework/commit/6971470))
* 修复(工程设计): 修复 ESLint 报错 ([352ff6b](https://github.com/ziyi2/micro-framework/commit/352ff6b))
* 修复(工程设计): 修复 ESLint 错误 ([ae5d071](https://github.com/ziyi2/micro-framework/commit/ae5d071))
* feat(工程化): 新增 cz ([4af13e5](https://github.com/ziyi2/micro-framework/commit/4af13e5))
* npm micro demo ([d182af3](https://github.com/ziyi2/micro-framework/commit/d182af3))
* docs(readme.md): 新增 README.md 说明 ([7328a77](https://github.com/ziyi2/micro-framework/commit/7328a77))



0 comments on commit 7ba9596

Please sign in to comment.