Commit 3607ffd
committed
ci: run tests on every branch, add provenance, and gate publishing
CI only ran on pushes to main and develop, so a feature branch was checked by
nothing until it became a PR. It now runs on every branch, cancels superseded
runs, tests on Node 24 as well as 20 and 22, and runs `pnpm test` — which the
mongo and postgres workflows never did because there were no tests.
publish.yml had no `id-token: write`, so releases carried no npm provenance,
and nothing verified that the tag matched package.json — a mismatched tag would
have published the wrong version. It now checks that first, lints, builds and
tests before publishing, publishes with `--provenance`, and reads the release
notes from CHANGELOG.md with awk taking the version from the environment rather
than interpolating it into the script. The job is gated on an `npm`
environment so an irreversible publish can require approval.
Adds the missing SECURITY.md — with the operational notes this tool needs,
since it takes database credentials and can change server state — plus
CODE_OF_CONDUCT.md and CODEOWNERS. Bumps the version to 1.1.0 with a changelog
entry.1 parent 4b28616 commit 3607ffd
3 files changed
Lines changed: 42 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
10 | 50 | | |
11 | 51 | | |
12 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments