@dnalec/dsh-auto-approve 0.1.0 → 0.1.2
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/README.md +3 -3
- package/README.zh.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Scope is approval only. The QQ bot is a notify-and-reply channel, not an agent c
|
|
|
13
13
|
Pin a release tag (recommended). `main` is for published commits; in-progress work lives on other branches.
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
|
-
dsh plugin --profile web add github:DNAlec/dsh-auto-approve#v0.1.
|
|
16
|
+
dsh plugin --profile web add github:DNAlec/dsh-auto-approve#v0.1.2
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
From npm, after a tagged release:
|
|
@@ -140,9 +140,9 @@ For agents working in this repository, follow [AGENTS.md](AGENTS.md).
|
|
|
140
140
|
|
|
141
141
|
## Releasing
|
|
142
142
|
|
|
143
|
-
1. Set `package.json` `version` (for example `0.1.
|
|
143
|
+
1. Set `package.json` `version` (for example `0.1.2`) and merge to `main`.
|
|
144
144
|
2. On npmjs.com, add a Trusted Publisher for this GitHub repo, workflow file `publish.yml` (once).
|
|
145
|
-
3. Tag and push: `git tag v0.1.
|
|
145
|
+
3. Tag and push: `git tag v0.1.2 && git push origin v0.1.2`.
|
|
146
146
|
|
|
147
147
|
The tag must match `package.json` version. The workflow runs tests, then `npm publish`. The first publish of the package name may need a local `npm login` and `npm publish --access public` once; later tags are enough.
|
|
148
148
|
|
package/README.zh.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
请钉死发行 tag(推荐)。`main` 只放已发布的提交,开发走其他分支。
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
|
-
dsh plugin --profile web add github:DNAlec/dsh-auto-approve#v0.1.
|
|
16
|
+
dsh plugin --profile web add github:DNAlec/dsh-auto-approve#v0.1.2
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
打 tag 发布后也可从 npm 安装:
|
|
@@ -140,9 +140,9 @@ npm run check
|
|
|
140
140
|
|
|
141
141
|
## 发布
|
|
142
142
|
|
|
143
|
-
1. 把 `package.json` 的 `version` 改成目标版本(例如 `0.1.
|
|
143
|
+
1. 把 `package.json` 的 `version` 改成目标版本(例如 `0.1.2`),合进 `main`。
|
|
144
144
|
2. 在 npmjs.com 给本仓库配置 Trusted Publisher,工作流文件填 `publish.yml`(只需一次)。
|
|
145
|
-
3. 打 tag 并推送:`git tag v0.1.
|
|
145
|
+
3. 打 tag 并推送:`git tag v0.1.2 && git push origin v0.1.2`。
|
|
146
146
|
|
|
147
147
|
tag 必须与 `package.json` 版本一致。工作流会先跑测试再 `npm publish`。这个包名第一次上架可能需要本机 `npm login` 后执行一次 `npm publish --access public`;之后推 tag 即可。
|
|
148
148
|
|