@dnalec/dsh-auto-approve 0.1.2 → 0.1.3
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 +5 -3
- package/README.zh.md +5 -3
- package/client.js +2 -2
- package/package.json +1 -1
- package/src/util.mjs +1 -1
package/README.md
CHANGED
|
@@ -13,9 +13,11 @@ 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.3
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
`v0.1.1` and `v0.1.2` fail to load the Web client (`loaded without registering`). Use **v0.1.3** or later.
|
|
20
|
+
|
|
19
21
|
From npm, after a tagged release:
|
|
20
22
|
|
|
21
23
|
```sh
|
|
@@ -140,9 +142,9 @@ For agents working in this repository, follow [AGENTS.md](AGENTS.md).
|
|
|
140
142
|
|
|
141
143
|
## Releasing
|
|
142
144
|
|
|
143
|
-
1. Set `package.json` `version` (for example `0.1.
|
|
145
|
+
1. Set `package.json` `version` (for example `0.1.3`) and merge to `main`.
|
|
144
146
|
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.
|
|
147
|
+
3. Tag and push: `git tag v0.1.3 && git push origin v0.1.3`.
|
|
146
148
|
|
|
147
149
|
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
150
|
|
package/README.zh.md
CHANGED
|
@@ -13,9 +13,11 @@
|
|
|
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.3
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
`v0.1.1` / `v0.1.2` 无法加载网页客户端(`loaded without registering`)。请用 **v0.1.3** 或更新。
|
|
20
|
+
|
|
19
21
|
打 tag 发布后也可从 npm 安装:
|
|
20
22
|
|
|
21
23
|
```sh
|
|
@@ -140,9 +142,9 @@ npm run check
|
|
|
140
142
|
|
|
141
143
|
## 发布
|
|
142
144
|
|
|
143
|
-
1. 把 `package.json` 的 `version` 改成目标版本(例如 `0.1.
|
|
145
|
+
1. 把 `package.json` 的 `version` 改成目标版本(例如 `0.1.3`),合进 `main`。
|
|
144
146
|
2. 在 npmjs.com 给本仓库配置 Trusted Publisher,工作流文件填 `publish.yml`(只需一次)。
|
|
145
|
-
3. 打 tag 并推送:`git tag v0.1.
|
|
147
|
+
3. 打 tag 并推送:`git tag v0.1.3 && git push origin v0.1.3`。
|
|
146
148
|
|
|
147
149
|
tag 必须与 `package.json` 版本一致。工作流会先跑测试再 `npm publish`。这个包名第一次上架可能需要本机 `npm login` 后执行一次 `npm publish --access public`;之后推 tag 即可。
|
|
148
150
|
|
package/client.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* 恢复默认:第一次点武装,5 秒内再点才执行。
|
|
9
9
|
*/
|
|
10
10
|
window.__ModuleLoader__.load({
|
|
11
|
-
id: 'dsh-auto-approve',
|
|
11
|
+
id: '@dnalec/dsh-auto-approve',
|
|
12
12
|
factory: (require) => {
|
|
13
13
|
var module = { exports: {} }
|
|
14
14
|
var exports = module.exports
|
|
@@ -1306,7 +1306,7 @@ window.__ModuleLoader__.load({
|
|
|
1306
1306
|
|
|
1307
1307
|
exports.apply = plugin.apply
|
|
1308
1308
|
exports.inject = plugin.inject
|
|
1309
|
-
exports.name = 'dsh-auto-approve'
|
|
1309
|
+
exports.name = '@dnalec/dsh-auto-approve'
|
|
1310
1310
|
return module.exports
|
|
1311
1311
|
},
|
|
1312
1312
|
})
|
package/package.json
CHANGED
package/src/util.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { appendFileSync, chmodSync, existsSync, mkdirSync, readFileSync, renameS
|
|
|
8
8
|
import { homedir } from 'node:os'
|
|
9
9
|
import { dirname, join } from 'node:path'
|
|
10
10
|
|
|
11
|
-
export const NAME = 'dsh-auto-approve'
|
|
11
|
+
export const NAME = '@dnalec/dsh-auto-approve'
|
|
12
12
|
|
|
13
13
|
export function dshHome() {
|
|
14
14
|
return process.env.DSH_HOME || join(homedir(), '.dsh')
|