@stocksharp/diagram 0.2.0 → 0.2.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 +18 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# StockSharp JS Strategy Diagram
|
|
2
2
|
|
|
3
3
|
[](https://github.com/StockSharp/Diagram/actions/workflows/ci.yml)
|
|
4
4
|
[](https://www.npmjs.com/package/@stocksharp/diagram)
|
|
@@ -312,7 +312,6 @@ npm test
|
|
|
312
312
|
npm run build
|
|
313
313
|
npm run serve
|
|
314
314
|
npm run pack:check
|
|
315
|
-
npm run release:check -- v0.1.0
|
|
316
315
|
npm run release:patch
|
|
317
316
|
npm run release:minor
|
|
318
317
|
npm run release:major
|
|
@@ -327,31 +326,29 @@ The browser suite covers Chromium smoke, interaction and lifecycle scenarios
|
|
|
327
326
|
at DPR 1 and 2.
|
|
328
327
|
|
|
329
328
|
CI verifies type checking, the reviewed declaration snapshot, unit/integration
|
|
330
|
-
tests,
|
|
331
|
-
|
|
329
|
+
tests, all bundles and tarball contents. The Playwright browser suite runs
|
|
330
|
+
locally via `npm run test:browser` (not in CI — the headless unit tests already
|
|
331
|
+
cover the same behaviour). GitHub Pages publishes the demo from `main`.
|
|
332
332
|
|
|
333
|
-
Publishing is
|
|
333
|
+
Publishing is driven by the version in `package.json`. `release.yml` runs on
|
|
334
|
+
every push to `main` and publishes only when that version is not yet on npm, so
|
|
335
|
+
an ordinary push is a no-op. To cut a release, bump the version and push:
|
|
334
336
|
|
|
335
337
|
```sh
|
|
336
|
-
npm run release:patch
|
|
337
|
-
git push
|
|
338
|
+
npm run release:patch # or release:minor / release:major
|
|
339
|
+
git push
|
|
338
340
|
```
|
|
339
341
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
retried for the existing tag through the workflow's `Run workflow` action;
|
|
345
|
-
already-published versions are detected and skipped.
|
|
346
|
-
|
|
347
|
-
The first publication needs a short-lived npm granular access token in the
|
|
348
|
-
repository Actions secret `NPM_TOKEN`. After `@stocksharp/diagram` exists on npm,
|
|
349
|
-
configure tokenless trusted publishing, then remove the secret and revoke the
|
|
350
|
-
bootstrap token:
|
|
342
|
+
The new version triggers `release.yml`, which rebuilds and tests the repository,
|
|
343
|
+
publishes to npm with provenance, then creates the `v<version>` tag and GitHub
|
|
344
|
+
Release. A failed publication can be retried from the workflow's `Run workflow`
|
|
345
|
+
action; already-published versions are detected and skipped.
|
|
351
346
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
347
|
+
Publishing authenticates through npm **trusted publishing (OIDC)** — there is no
|
|
348
|
+
`NPM_TOKEN` secret. The workflow grants `id-token: write`, and npm exchanges the
|
|
349
|
+
GitHub OIDC token for a short-lived publish token. The npm Trusted Publisher is
|
|
350
|
+
bound to the workflow filename `release.yml`, so do not rename that workflow
|
|
351
|
+
without updating the trusted publisher configuration on npmjs first.
|
|
355
352
|
|
|
356
353
|
## License
|
|
357
354
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stocksharp/diagram",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Browser strategy-diagram editor for StockSharp with typed ports, palette, canvas rendering, persistence, and a TypeScript API.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": {
|