Skip to content

Commit fca05ad

Browse files
author
iammm0
committed
chore(release): 恢复版本号为 2.0.0 以便重新发布
npm 上已移除 2.0.0 后可再次 publish;同步 lockfile 与 release 注释。 Made-with: Cursor
1 parent dc797ba commit fca05ad

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# 自动发布 npm 包 @opensec/secbot(以 2.0.1 / 标签 v2.0.1 为例)
2-
# 1. 确认根目录 package.json 的 version 与即将打的标签一致(如 2.0.1 对应标签 v2.0.1)。
1+
# 自动发布 npm 包 @opensec/secbot(以 2.0.0 / 标签 v2.0.0 为例)
2+
# 1. 确认根目录 package.json 的 version 与即将打的标签一致(如 2.0.0 对应标签 v2.0.0)。
33
# 2. NPM_TOKEN(npm 账号若开启 2FA,必须二选一,否则会报 403:需 bypass 2FA 才能 publish):
44
# · Granular Access Token:Packages 选 Read and write;创建时勾选「允许发布时绕过双因素认证」
55
# (英文界面类似 "Bypass two-factor authentication (2FA) for writes",以 npm 网站为准)。
66
# · 或 Classic Token:类型必须选 Automation(勿用需 OTP 的 Publish 类令牌)。
77
# 权限须覆盖 @opensec;GitHub Secret 名仍为 NPM_TOKEN。
8-
# 3. git tag v2.0.1 && git push origin v2.0.1
8+
# 3. git tag v2.0.0 && git push origin v2.0.0
99
# 将触发:构建 → 校验版本 → 打 GitHub Release 并上传 tgz → npm publish(npmjs)+
1010
# GitHub Packages(仓库 Settings → Packages 可见;包名为 @<仓库所有者>/secbot,与 @opensec/secbot 并存)。
1111
# 工作流 permissions 需含 packages: write(已配置);使用 GITHUB_TOKEN 认证 npm.pkg.github.com。

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opensec/secbot",
3-
"version": "2.0.1",
3+
"version": "2.0.0",
44
"description": "Secbot pure TypeScript security automation backend and CLI.",
55
"type": "commonjs",
66
"private": false,

0 commit comments

Comments
 (0)