@decohere/ci-tools 0.0.1-dev.20261123.374 → 0.0.1-dev.20261123.379
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
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @decohere/ci-tools
|
|
2
|
+
|
|
3
|
+
Node scripts the repo's GitHub workflows and root `package.json` scripts run. Plain `.mjs`, run from source with `node`. One folder per job, under `src/`:
|
|
4
|
+
|
|
5
|
+
- `audit/`: summarize `npm audit`, fail on findings (`enforce`), and open or close the audit issue (`upsert-issue`). Run by CI (`ci.yml`) and the nightly `npm-audit.yml`.
|
|
6
|
+
- `badges/`: the CI status badge (`ci-status`). Run by `pages.yml`, `bench.yml` and `clear-benchmark-history.yml`.
|
|
7
|
+
- `bench/`: build benchmarks (`pnpm bench`, `pnpm bench:save`, `pnpm perf:trace`), and the nightly run and its regression issues. Run by `bench.yml`.
|
|
8
|
+
- `changeset/`: changeset status and changelog scripts behind `pnpm changeset:check` and `pnpm version:aggregate`. No workflow runs them.
|
|
9
|
+
- `coverage/`: the coverage report (`pnpm test:coverage:report`) and its badge, run by `pages.yml`.
|
|
10
|
+
- `github/`: GitHub and npm checks (`ensure-metadata` is used by `publish-verify`): `first-publish-check` (CI), `publish-verify` (`publish.yml`), `failure-report` (the `failure-report` action, used by `ci.yml` and `clear-benchmark-history.yml`), and `npm-bootstrap` (`pnpm npm:bootstrap`, run by hand).
|
|
11
|
+
- `lib/`: what the scripts share: SVG badges, LCOV parsing, GitHub issues, the workspace's packages. Nothing runs it directly.
|
|
12
|
+
- `pages/`: the GitHub Pages site (badges, bench history, the artifact). Run by `pages.yml`, `bench.yml` and `clear-benchmark-history.yml`.
|
|
13
|
+
- `release/`: publishing: `check-patch-release`, `find-publish-base` and `restamp-build` (`publish.yml`), `promote-latest` (`promote-latest.yml`, the "Promote to latest" workflow), and `publish-to-temporary-registry` (the `verify-release` action).
|
|
14
|
+
|
|
15
|
+
## Working on this package
|
|
16
|
+
|
|
17
|
+
Tests are in `tests/`, in folders named like the `src/` folders they test: `*.test.mjs` and, under `release/`, `*.spec.ts`. `pnpm test` runs both. `tests/github/ci-workflow.test.mjs` and `publish-workflow.test.mjs` check the workflow files themselves. There is no canonical suite for ci-tools in the [testing table](../../docs/contributing/testing/README.md#canonical-suite-ownership).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decohere/ci-tools",
|
|
3
|
-
"version": "0.0.1-dev.20261123.
|
|
3
|
+
"version": "0.0.1-dev.20261123.379",
|
|
4
4
|
"description": "CI utility scripts for badge generation, coverage reporting, pages artifact assembly, and GitHub API tooling",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -57,7 +57,9 @@ export function runDesignCheck(options = {}) {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
log(
|
|
60
|
+
log(
|
|
61
|
+
`design: ${total(counts)} breaks of ADR 0027 (docs/contributing/adr/0027-code-design.md).`,
|
|
62
|
+
);
|
|
61
63
|
if (rose.length > 0) {
|
|
62
64
|
log(rose.join("\n"));
|
|
63
65
|
log(
|
|
@@ -43,7 +43,7 @@ export function promoteLatest(options) {
|
|
|
43
43
|
}
|
|
44
44
|
log(`Promoting ${version} to latest on ${packages.length} packages`);
|
|
45
45
|
|
|
46
|
-
// Once a stable version is out, latest belongs to releases: see "Stable release" in docs/ci.
|
|
46
|
+
// Once a stable version is out, latest belongs to releases: see "Stable release" in docs/contributing/ci.
|
|
47
47
|
const current = /^latest: (.+)$/m.exec(npm("dist-tag", "ls", LAUNCH_PACKAGE).stdout)?.[1];
|
|
48
48
|
if (current != null && !current.includes("-") && version.includes("-")) {
|
|
49
49
|
log(`latest is the stable ${current}, and ${version} is a dev version. Nothing moved.`);
|