release: 1.0.2, and learn whether the built-in job token can publish
publish / npm (push) Successful in 5s
publish / npm (push) Successful in 5s
The publish step now tries the built-in Gitea job token first, prints which user it belongs to, falls back to NPM_TOKEN when the registry rejects it, and reports which token actually published. A 409 keeps meaning 'already published', so a re-run stays harmless.
This commit is contained in:
@@ -58,16 +58,16 @@ DSH 的 **插件 → 添加插件** 里有两个输入,含义不同:
|
||||
在上面的输入框里填:
|
||||
|
||||
```text
|
||||
https://gitea.iwake.top/dsh-plugin/session-delete.git#v1.0.1
|
||||
https://gitea.iwake.top/dsh-plugin/session-delete.git#v1.0.2
|
||||
```
|
||||
|
||||
`#` 后面可以跟标签或提交,用来锁定版本;不写则取默认分支。仓库是公开的,不需要凭据,也不需要改安装源。
|
||||
|
||||
想跟随 1.x 的最新版本,可以把后缀写成 `#semver:^1.0.1`——pnpm 会按仓库里的标签挑最高的 1.x(当前即 v1.0.1 那个提交),以后发了 v1.0.2,移除旧版本再装一次就能拿到。
|
||||
想跟随 1.x 的最新版本,可以把后缀写成 `#semver:^1.0.2`——pnpm 会按仓库里的标签挑最高的 1.x(当前即 v1.0.2 那个提交),以后发了 v1.0.3,移除旧版本再装一次就能拿到。
|
||||
|
||||
### 2. 本地 tgz
|
||||
|
||||
把 [session-delete-1.0.1.tgz](https://gitea.iwake.top/api/packages/dsh-plugin/npm/@dsh-plugin%2Fsession-delete/-/1.0.1/session-delete-1.0.1.tgz) 下载到运行 DSH 的机器上,把它的绝对路径填进上面的输入框。
|
||||
把 [session-delete-1.0.2.tgz](https://gitea.iwake.top/api/packages/dsh-plugin/npm/@dsh-plugin%2Fsession-delete/-/1.0.2/session-delete-1.0.2.tgz) 下载到运行 DSH 的机器上,把它的绝对路径填进上面的输入框。
|
||||
|
||||
### 关于「npm 源」这条走不通的路
|
||||
|
||||
|
||||
Reference in New Issue
Block a user