@zacharyjia/tdt-cesium-plugin 1.0.0 → 1.0.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 +0 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,20 +41,3 @@ new TdtPlug.GeoWTFS(viewer, {
|
|
|
41
41
|
serverFirstStyle: true, //服务端样式优先
|
|
42
42
|
})
|
|
43
43
|
```
|
|
44
|
-
|
|
45
|
-
## 发布
|
|
46
|
-
|
|
47
|
-
仓库已配置 GitHub Actions,在推送 tag 时自动构建并发布到 NPM。tag 需要和 `package.json` 里的版本一致,例如 `v1.0.1` 或 `1.0.1`。
|
|
48
|
-
|
|
49
|
-
发布方式使用 NPM Trusted Publishing,不再依赖 `NPM_TOKEN`。需要先在 npm 包设置里配置 trusted publisher:
|
|
50
|
-
|
|
51
|
-
1. `Organization or user`: `ZacharyJia`
|
|
52
|
-
2. `Repository`: `tdt-cesium-plugin`
|
|
53
|
-
3. `Workflow filename`: `publish.yml`
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
npm version patch
|
|
57
|
-
git push origin main --follow-tags
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
配置完成后,GitHub Actions 会通过 OIDC 直接执行 `npm publish`。如果仓库和包都是公开的,npm 会自动生成 provenance,不需要额外传 `--provenance`。
|