@bbebee/plugin-visualizer-meters 0.1.0 → 0.1.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/BBeBee.plugin.json +1 -1
- package/README.md +34 -9
- package/package.json +5 -1
package/BBeBee.plugin.json
CHANGED
package/README.md
CHANGED
|
@@ -143,12 +143,37 @@ upload.
|
|
|
143
143
|
|
|
144
144
|
## Publishing
|
|
145
145
|
|
|
146
|
-
### 1. Publish the package to npm
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
npm
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
### 1. Publish the package to npm — from CI, with provenance
|
|
147
|
+
|
|
148
|
+
Releases are published by `.github/workflows/publish.yml`
|
|
149
|
+
(**Actions → Publish to npm → Run workflow**, version as input). The
|
|
150
|
+
workflow stamps the version into `package.json` and
|
|
151
|
+
`BBeBee.plugin.json`, builds, tests, verifies the publication
|
|
152
|
+
identity, and runs `npm publish --provenance`.
|
|
153
|
+
|
|
154
|
+
Publishing from CI is not a convenience choice: npm **provenance**
|
|
155
|
+
attestations — the signed statement of which repository and workflow
|
|
156
|
+
built a version — are minted from the GitHub Actions OIDC
|
|
157
|
+
environment and cannot be added to a version after the fact. The
|
|
158
|
+
0.1.0 launch predates this (local machine, staged publishing) and
|
|
159
|
+
carries no attestation; every later release should come from the
|
|
160
|
+
workflow. The plugin client refuses an install whose attestation
|
|
161
|
+
names a different source repository than the registry entry's
|
|
162
|
+
`repo`, and registry CI checks official entries the same way.
|
|
163
|
+
|
|
164
|
+
One-time setup on npmjs.com (trusted publishing — no long-lived npm
|
|
165
|
+
token exists anywhere): package **@bbebee/plugin-visualizer-meters**
|
|
166
|
+
→ Settings → Trusted Publisher → GitHub Actions, with organization
|
|
167
|
+
`BBeBeeX`, repository `B_Be_Bee-visualizer-meters`, workflow filename
|
|
168
|
+
`publish.yml`.
|
|
169
|
+
|
|
170
|
+
After a release, update the registry entry's pin: set
|
|
171
|
+
`reviewedVersion` to the new version and `reviewedIntegrity` to that
|
|
172
|
+
version's `dist.integrity` from its npm packument.
|
|
173
|
+
|
|
174
|
+
Manual publishing (`npm run build && npm publish` from a checkout)
|
|
175
|
+
still works in a pinch, but the result has no provenance and should
|
|
176
|
+
be replaced by a CI release.
|
|
152
177
|
|
|
153
178
|
The npm package name and the registry entry's `npm` field are the same
|
|
154
179
|
string — `@bbebee/plugin-visualizer-meters` — while the manifest `id`
|
|
@@ -164,9 +189,9 @@ community registry. To list the plugin:
|
|
|
164
189
|
|
|
165
190
|
1. Copy it into the
|
|
166
191
|
[B_Be_Bee-registry](https://github.com/BBeBeeX/B_Be_Bee-registry) repo
|
|
167
|
-
as `plugins/
|
|
168
|
-
|
|
169
|
-
|
|
192
|
+
as `plugins/bbebee-plugin-visualizer-meters.json` (the entry
|
|
193
|
+
filename must equal the entry `id`; registry validation rejects a
|
|
194
|
+
mismatch) and open a PR there.
|
|
170
195
|
2. Registry CI validates the entry: field shape, the `services`
|
|
171
196
|
whitelist, and — by fetching the npm packument — that the package in
|
|
172
197
|
the `npm` field exists and that its published manifest id and package
|
package/package.json
CHANGED
|
@@ -19,10 +19,14 @@
|
|
|
19
19
|
"react": "^19.0.0",
|
|
20
20
|
"react-dom": "^19.0.0"
|
|
21
21
|
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/BBeBeeX/B_Be_Bee-visualizer-meters"
|
|
25
|
+
},
|
|
22
26
|
"scripts": {
|
|
23
27
|
"build": "node build.mjs",
|
|
24
28
|
"test": "node --test test/meters-math.test.ts"
|
|
25
29
|
},
|
|
26
30
|
"type": "module",
|
|
27
|
-
"version": "0.1.
|
|
31
|
+
"version": "0.1.1"
|
|
28
32
|
}
|