@viccydev/pi-fpa 0.4.0 → 0.4.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/README.md +9 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,20 +110,22 @@ pi list
|
|
|
110
110
|
团队分发建议使用固定 Git tag:
|
|
111
111
|
|
|
112
112
|
```bash
|
|
113
|
-
pi install git:github.com/linyqh/pi-fpa@v0.
|
|
113
|
+
pi install git:github.com/linyqh/pi-fpa@v0.4.1
|
|
114
114
|
```
|
|
115
115
|
|
|
116
116
|
## 发布到 npm
|
|
117
117
|
|
|
118
|
-
发布动作由 GitHub Release 触发。Release 标签必须严格使用 `v<package.json version>`,例如版本 `0.4.
|
|
118
|
+
发布动作由 GitHub Release 触发。Release 标签必须严格使用 `v<package.json version>`,例如版本 `0.4.1` 对应 `v0.4.1`。工作流会检出该标签,执行 `npm ci`、`npm test` 和包内容预检,全部通过后发布公开包 `@viccydev/pi-fpa`。普通 Release 发布到 `latest`,Prerelease 发布到 `next`。
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
发布认证使用 npm Trusted Publishing / OIDC,不使用长期 npm Token。npm 包后台的 Trusted Publisher 配置为:
|
|
121
121
|
|
|
122
|
-
1.
|
|
123
|
-
2.
|
|
124
|
-
3.
|
|
122
|
+
1. Provider:GitHub Actions。
|
|
123
|
+
2. Organization or user:`linyqh`。
|
|
124
|
+
3. Repository:`pi-fpa`。
|
|
125
|
+
4. Workflow filename:`publish.yml`。
|
|
126
|
+
5. Allowed actions:`npm publish`。
|
|
125
127
|
|
|
126
|
-
|
|
128
|
+
工作流必须保留 `permissions.id-token: write`,并使用满足 npm Trusted Publishing 最低版本要求的 Node/npm;不要重新添加 `NPM_TOKEN` 或 `NODE_AUTH_TOKEN`。当前 GitHub 仓库为 private,OIDC 发布可用,但 npm 不会生成 provenance。当前许可证仍是 `UNLICENSED`;若准备让第三方使用或修改本包,应先明确许可证。
|
|
127
129
|
|
|
128
130
|
## 使用
|
|
129
131
|
|