ssh-release 0.9.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +7 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.1 - 2026-06-25
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- 增加基于 npm Trusted Publishing 的 GitHub Actions 自动发布 workflow,推送版本标签后可通过 OIDC 发布 npm 包。
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- 固定 GitHub Actions 测试时区,避免版本号测试在 UTC runner 中失败。
|
|
12
|
+
|
|
13
|
+
## 1.0.0 - 2026-06-25
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- 发布 1.0.0 稳定版契约文档,明确 CLI 命令、JSON 输出、退出码、配置字段、发布后校验和安全边界的 SemVer 兼容规则。
|
|
18
|
+
|
|
3
19
|
## 0.9.0 - 2026-06-25
|
|
4
20
|
|
|
5
21
|
### Added
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## 当前状态
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
当前版本已进入 1.0 稳定版,CLI 命令、JSON 输出、配置字段和安全边界见 [docs/contracts.md](https://github.com/JackEngineer/ssh-release/blob/main/docs/contracts.md)。
|
|
10
10
|
|
|
11
11
|
已实现:
|
|
12
12
|
|
|
@@ -338,6 +338,7 @@ npm run build
|
|
|
338
338
|
- `npm test`:运行 Node.js 测试。
|
|
339
339
|
- `npm run build`:编译 `dist/`。
|
|
340
340
|
- GitHub Actions 会在 `main` 推送和 Pull Request 上运行 `npm ci`、`lint`、`test` 和 `build`。
|
|
341
|
+
- 推送 `v*` 标签会触发 npm 自动发布 workflow。发布使用 npm Trusted Publishing,不需要长期 `NPM_TOKEN`。
|
|
341
342
|
|
|
342
343
|
## 发布前检查
|
|
343
344
|
|
|
@@ -360,6 +361,7 @@ npm install -g "$PACK_DIR"/ssh-release-"$VERSION".tgz --prefix "$PACK_DIR/prefix
|
|
|
360
361
|
```
|
|
361
362
|
|
|
362
363
|
`npm publish` 会发布到 npm registry,只有确认版本号、包内容、登录账号和发布权限都正确后再执行。
|
|
364
|
+
当前仓库正式发布由 `.github/workflows/publish.yml` 执行:推送版本标签后,GitHub Actions 会校验标签版本、运行发布门禁、检查包内容并调用 `npm publish`。
|
|
363
365
|
|
|
364
366
|
完整发布步骤见 [docs/release-checklist.md](https://github.com/JackEngineer/ssh-release/blob/main/docs/release-checklist.md)。
|
|
365
367
|
|
|
@@ -374,7 +376,9 @@ GitHub Actions 发布模板见 [docs/github-actions.md](https://github.com/JackE
|
|
|
374
376
|
```text
|
|
375
377
|
CHANGELOG.md
|
|
376
378
|
.github/
|
|
377
|
-
└── workflows/
|
|
379
|
+
└── workflows/
|
|
380
|
+
├── ci.yml
|
|
381
|
+
└── publish.yml
|
|
378
382
|
src/
|
|
379
383
|
├── cli.ts
|
|
380
384
|
├── config.ts
|
|
@@ -407,6 +411,7 @@ tests/
|
|
|
407
411
|
└── validate.test.ts
|
|
408
412
|
|
|
409
413
|
docs/
|
|
414
|
+
├── contracts.md
|
|
410
415
|
├── github-actions.md
|
|
411
416
|
├── recovery.md
|
|
412
417
|
├── release-checklist.md
|