diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 409655f..3ab4924 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,11 +1,30 @@ # Dependabot version updates: https://docs.github.com/code-security/dependabot/dependabot-version-updates -# -# npm is deliberately not listed: Dependabot runs pnpm on a Node older than the required 26, -# and `engineStrict` makes every npm update job fail (ERR_PNPM_UNSUPPORTED_ENGINE). In-major -# npm updates come from nightly-minor-deps-release.yml; major upgrades are done by hand. version: 2 updates: + - package-ecosystem: 'npm' + directory: '/' + schedule: + interval: 'monthly' + # One PR for all minor/patch bumps instead of one per package. + groups: + minor-and-patch: + update-types: ['minor', 'patch'] + ignore: + # Types must track the Node runtime (26 LTS: CI, Docker, .nvmrc), not the latest Node. + - dependency-name: '@types/node' + update-types: ['version-update:semver-major'] + # TypeScript 7 (native port) isn't supported by typescript-eslint / svelte-check yet. + # Remove once they declare support for typescript@7. + - dependency-name: 'typescript' + update-types: ['version-update:semver-major'] - package-ecosystem: 'github-actions' directory: '/' schedule: - interval: 'weekly' + interval: 'monthly' + + # Monthly checks for Docker base images + - package-ecosystem: 'docker' + directory: '/' + schedule: + interval: 'monthly' + target-branch: 'main' diff --git a/AGENTS.md b/AGENTS.md index 2902d91..313420f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -172,7 +172,7 @@ Drop the workbook in `data/` named like `Physioshark_Shark Log 2026-2027.xlsx` ( - `nightly-minor-deps-release.yml`: `npm-check-updates --target semver --cooldown 3`, full suite, then a patch release + image **only when a package that reaches the image moved** (tooling list in `scripts/nightlyRelease.mjs`; add new lint/test devDependencies there). It pushes to `main`, so branch protection needs a bypass for Actions. - `refresh-external.yml`: weekly `fetch-external.mjs`; when `external/` changed it commits, tags a patch release and publishes the image. - Partial refreshes (#159): each source writes into a staging folder (`external-refresh.mjs`) and replaces its files only when it finishes, so a failed source keeps its old snapshot and the others still ship. The fetch step may fail (`continue-on-error`); the workflow still commits and releases what changed, and the `report` job turns the run red afterwards (also when Docker was skipped). Don't fail the refresh job before publishing. Release notes list the updated files. The job allows 120 minutes: a full fetch took 48 on 4 Nov 2026, mostly NOAA ERDDAP stalls (each request times out after 120 s and retries). HTTP 429 waits at least a minute (or `Retry-After`), weather chunks are 10 s apart (Open-Meteo counts a long request with many variables as several calls; 1.5 s apart hit its per-minute limit on 2 Nov 2026), and historical ERDDAP 404s are retried; a final chunk's 404 means not yet published. -- Dependabot covers GitHub Actions only: its pnpm runs on Node < 26 and `engineStrict` fails every npm job. npm majors are upgraded by hand. +- Dependabot (`.github/dependabot.yml`): monthly checks for `npm` (minor/patch grouped; `@types/node` and `typescript` majors ignored until supported), `github-actions`, and `docker` (`target-branch: 'main'`). Format GitHub YAML with Prettier (single quotes) before running `pnpm lint`, and review upstream changelogs/migration guides before merging major-version dependency bumps. - `ci.yml`: lint + check + unit tests, build + Playwright/axe, and a Docker build + smoke test (synthetic fixture) on both architectures. - Runner is distroless `cc-debian13:nonroot` (uid 65532) with the build stage's Node binary: no shell. Debug with `node -e`.