mascot-vis 3.1.7 → 3.2.7
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/.github/workflows/publish.yml +11 -6
- package/README.md +1 -1
- package/dist/mascot-cjs.cjs +2 -0
- package/dist/mascot-esm.js +2 -2
- package/dist/mascot-umd.js +2 -2
- package/package.json +12 -14
- package/dist/mascot-cjs.js +0 -2
|
@@ -17,9 +17,9 @@ jobs:
|
|
|
17
17
|
steps:
|
|
18
18
|
- uses: actions/checkout@v4
|
|
19
19
|
|
|
20
|
-
- uses: actions/setup-node@
|
|
20
|
+
- uses: actions/setup-node@v6
|
|
21
21
|
with:
|
|
22
|
-
node-version:
|
|
22
|
+
node-version: 24
|
|
23
23
|
registry-url: https://registry.npmjs.org
|
|
24
24
|
|
|
25
25
|
- run: npm ci
|
|
@@ -27,10 +27,15 @@ jobs:
|
|
|
27
27
|
- run: npm test
|
|
28
28
|
|
|
29
29
|
# Publish with provenance (recommended for OIDC + supply-chain metadata)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
# Publish with provenance for PUBLIC repos only
|
|
31
|
+
- name: Publish (provenance)
|
|
32
|
+
if: ${{ !github.event.repository.private }}
|
|
33
|
+
run: npm publish --provenance --access public
|
|
34
|
+
|
|
35
|
+
# Fallback for PRIVATE repos (provenance unsupported by npm for private repos)
|
|
36
|
+
- name: Publish (no provenance)
|
|
37
|
+
if: ${{ github.event.repository.private }}
|
|
38
|
+
run: npm publish --access public
|
|
34
39
|
|
|
35
40
|
- name: GitHub Release
|
|
36
41
|
run: gh release create "${GITHUB_REF_NAME}" --generate-notes
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
## Build and Run Project
|
|
9
9
|
|
|
10
|
-
1. To build project one time with `npm run build` OR build automatically on save with file watching `npm run watch`.
|
|
10
|
+
1. To build project one time with `npm run build` OR build automatically on save with file watching `npm run watch`. Three outputs (same content, different formats) will be built: `mascot-esm.js` for modern browsers and bundler usage (import/export), `mascot-umd.js` for direct <script> usage in browsers (global variable), and `mascot-cjs.cjs` for Node.js applications (require). No rendering support is included inside `mascot-cjs.cjs`.
|
|
11
11
|
2. To run the in-browser demos, start a server with `npm run start` (you need to have Python 3 installed), and load `localhost:8020` in browser; you can also start the server using Python 2 with the command `python -m SimpleHTTPServer <port>`
|
|
12
12
|
|
|
13
13
|
### Releasing
|