@dpuse/dpuse-development 1.0.151 → 1.0.152

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.
@@ -5,6 +5,7 @@ on:
5
5
  types: [published]
6
6
 
7
7
  permissions:
8
+ actions: read
8
9
  contents: read
9
10
  id-token: write
10
11
 
@@ -12,7 +13,27 @@ jobs:
12
13
  publish:
13
14
  name: Publish
14
15
  runs-on: ubuntu-latest
16
+ timeout-minutes: 30 # GitHub's default is 6 hours, which a stuck CI run would otherwise hold the job for.
15
17
  steps:
18
+ # A release is created straight after its push, so this runs alongside CI. Publishing waits for that CI run on
19
+ # the same commit and stops if it fails, so CI's checks run once and gate every release, including one created
20
+ # by hand on GitHub. The run is looked for again for a few minutes, as CI may not have been queued yet.
21
+ - name: Wait for CI
22
+ run: |
23
+ for attempt in $(seq 1 18); do
24
+ run_id="$(gh run list --workflow ci.yml --commit "$GITHUB_SHA" --event push --limit 1 --json databaseId --jq '.[0].databaseId // empty')"
25
+ if [ -n "$run_id" ]; then break; fi
26
+ sleep 10
27
+ done
28
+ if [ -z "$run_id" ]; then
29
+ echo "::error::No CI run found for commit $GITHUB_SHA"
30
+ exit 1
31
+ fi
32
+ gh run watch "$run_id" --exit-status --compact --interval 10
33
+ env:
34
+ GH_REPO: ${{ github.repository }}
35
+ GH_TOKEN: ${{ github.token }}
36
+
16
37
  - name: Checkout
17
38
  uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
18
39
 
@@ -66,25 +87,6 @@ jobs:
66
87
  - name: Build
67
88
  run: npm run build
68
89
 
69
- # Repeats the CI checks: a release is created straight after its push, so this runs alongside CI rather than
70
- # after it, and must not publish a commit that fails them.
71
- - name: Lint
72
- run: npm run lint
73
-
74
- # Unit tests only. CI runs the end-to-end tests on the same commit, so they are left out here, because installing
75
- # Playwright's Ubuntu packages stalls on some runners and blocked releases. The project's commands are put on the
76
- # path first, as for 'Publish' below.
77
- # TODO: Run the end-to-end tests here again once the job no longer downloads Ubuntu packages. Run the job in
78
- # Playwright's Docker image ('mcr.microsoft.com/playwright'), which has Chromium and its packages built in: add
79
- # a 'container' to the job with the image tag Playwright's Docker docs give for the '@playwright/test' version,
80
- # pinned by digest for OpenSSF Scorecard. Then add back the two steps kept in the TODO above the 'Test' step in
81
- # 'ci.yml', and run 'npm test' in this step. No browser install step is needed, as the image already has the
82
- # browsers.
83
- - name: Test
84
- run: |
85
- export PATH="$PWD/node_modules/.bin:$PATH"
86
- node -e "import('@dpuse/dpuse-development').then(m => m.testProject(['unit']))"
87
-
88
90
  # One step for every project: the action publishes to npm, uploads to DPUse, or both, as the module type requires.
89
91
  # Called directly rather than through a package.json script, as a script named 'publish' would be run again by
90
92
  # 'npm publish' itself. The project's own commands, such as 'wrangler', are put on the path first, which
package/README.md CHANGED
@@ -78,32 +78,31 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
78
78
 
79
79
  | Chunk/Module/File | Composition |
80
80
  | :------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------- |
81
- | **dist/dpuse-development.es.js** | 65.9 kB · gzip 21.0 kB · 63.4% of the build |
82
- |     src → documentDependencies.ts + 22 more | `██████████████████░░` 87.6% · 57.7 kB |
83
- |         ↳ documentDependencies.ts | `▒▒▒░░░░░░░░░░░░░░░░░` 17.3% · 11.4 kB |
84
- |         ↳ documentQualitySecurity.ts | `▒▒▒░░░░░░░░░░░░░░░░░` 15.1% · 9.9 kB |
85
- |         ↳ documentBundleSizes.ts | `▒▒▒░░░░░░░░░░░░░░░░░` 13.7% · 9.0 kB |
86
- |         ↳ checkConfigFiles.ts | `▒░░░░░░░░░░░░░░░░░░░` 5.7% · 3.8 kB |
87
- |         ↳ rustCrates.ts | `▒░░░░░░░░░░░░░░░░░░░` 5.2% · 3.4 kB |
88
- |         ↳ documentUsage.ts | `▒░░░░░░░░░░░░░░░░░░░` 4.1% · 2.7 kB |
89
- |         ↳ checkDependencies.ts | `▒░░░░░░░░░░░░░░░░░░░` 4.0% · 2.6 kB |
81
+ | **dist/dpuse-development.es.js** | 64.9 kB · gzip 20.8 kB · 63.0% of the build |
82
+ |     src → documentDependencies.ts + 21 more | `██████████████████░░` 87.6% · 56.8 kB |
83
+ |         ↳ documentDependencies.ts | `▒▒▒▒░░░░░░░░░░░░░░░░` 17.6% · 11.4 kB |
84
+ |         ↳ documentQualitySecurity.ts | `▒▒▒░░░░░░░░░░░░░░░░░` 15.3% · 9.9 kB |
85
+ |         ↳ documentBundleSizes.ts | `▒▒▒░░░░░░░░░░░░░░░░░` 13.9% · 9.0 kB |
86
+ |         ↳ checkConfigFiles.ts | `▒░░░░░░░░░░░░░░░░░░░` 5.8% · 3.8 kB |
87
+ |         ↳ rustCrates.ts | `▒░░░░░░░░░░░░░░░░░░░` 5.3% · 3.4 kB |
88
+ |         ↳ documentUsage.ts | `▒░░░░░░░░░░░░░░░░░░░` 4.2% · 2.7 kB |
89
+ |         ↳ checkDependencies.ts | `▒░░░░░░░░░░░░░░░░░░░` 4.1% · 2.6 kB |
90
90
  |         ↳ cloudflare.ts | `▒░░░░░░░░░░░░░░░░░░░` 3.4% · 2.2 kB |
91
91
  |         ↳ documentOpening.ts | `▒░░░░░░░░░░░░░░░░░░░` 3.1% · 2.0 kB |
92
- |         ↳ auditDependencies.ts | `▒░░░░░░░░░░░░░░░░░░░` 3.0% · 2.0 kB |
92
+ |         ↳ auditDependencies.ts | `▒░░░░░░░░░░░░░░░░░░░` 3.1% · 2.0 kB |
93
93
  |         ↳ documentActions.ts | `▒░░░░░░░░░░░░░░░░░░░` 2.7% · 1.8 kB |
94
94
  |         ↳ documentContributingLicense.ts | `░░░░░░░░░░░░░░░░░░░░` 1.9% · 1.2 kB |
95
95
  |         ↳ publishProject.ts | `░░░░░░░░░░░░░░░░░░░░` 1.7% · 1.1 kB |
96
- |         ↳ releaseProject.ts | `░░░░░░░░░░░░░░░░░░░░` 1.4% · 972 B |
97
96
  |         ↳ testProject.ts | `░░░░░░░░░░░░░░░░░░░░` 1.2% · 799 B |
98
97
  |         ↳ 8 smaller files | `▒░░░░░░░░░░░░░░░░░░░` 4.3% · 2.8 kB |
99
98
  |     (inlined worker) | `░░░░░░░░░░░░░░░░░░░░` 0.0% · 17 B |
100
- |     (bundler output, whitespace & JSON) | `██░░░░░░░░░░░░░░░░░░` 12.4% · 8.2 kB |
101
- | **dist/utilities-BJfQ3vEr.js** | 27.2 kB · gzip 7.3 kB · 26.1% of the build |
99
+ |     (bundler output, whitespace & JSON) | `██░░░░░░░░░░░░░░░░░░` 12.4% · 8.1 kB |
100
+ | **dist/utilities-BJfQ3vEr.js** | 27.2 kB · gzip 7.3 kB · 26.4% of the build |
102
101
  |     @dpuse/dpuse-shared → dist/dpuse-shared.es.js | `███████████░░░░░░░░░` 54.7% · 14.9 kB |
103
102
  |     src → index.ts | `███████░░░░░░░░░░░░░` 32.7% · 8.9 kB |
104
103
  |     valibot → dist/index.mjs | `░░░░░░░░░░░░░░░░░░░░` 1.5% · 413 B |
105
104
  |     (bundler output, whitespace & JSON) | `██░░░░░░░░░░░░░░░░░░` 11.1% · 3.0 kB |
106
- | **dist/apiReference-aFk9cwH0.js** | 8.4 kB · gzip 3.1 kB · 8.1% of the build |
105
+ | **dist/apiReference-aFk9cwH0.js** | 8.4 kB · gzip 3.1 kB · 8.2% of the build |
107
106
  |     src → apiReference.ts | `███████████████████░` 95.3% · 8.0 kB |
108
107
  |     (bundler output, whitespace & JSON) | `█░░░░░░░░░░░░░░░░░░░` 4.7% · 407 B |
109
108
  | **dist/vite.es.js** | 2.5 kB · gzip 1.1 kB · 2.4% of the build |