| 1 |
--- |
| 2 |
description: Pre-release verification checklist for install-artifact-from-github |
| 3 |
--- |
| 4 |
|
| 5 |
# Release Check |
| 6 |
|
| 7 |
Run through this checklist before tagging a new release. This package is a |
| 8 |
zero-dependency, ESM-only, two-binary CLI helper. The deliverables are |
| 9 |
`bin/install-from-cache.js` and `bin/save-to-github-cache.js` — there is no |
| 10 |
public module surface, no build step, and primary consumer is `node-re2`. |
| 11 |
|
| 12 |
## Steps |
| 13 |
|
| 14 |
1. **Semver decision.** Review `git log <last-tag>..HEAD` and classify the |
| 15 |
diff: |
| 16 |
- New CLI flag, new env var, new compression format, new behavior toggle → minor. |
| 17 |
- Bug fix or doc-only change → patch. |
| 18 |
- Renamed flag, removed flag, changed default behavior, changed env-var |
| 19 |
name → major. |
| 20 |
Record the chosen bump before touching anything else. |
| 21 |
2. **`README.md`** Release-history table includes a one-line entry for the |
| 22 |
new version. |
| 23 |
3. **`wiki/`** (submodule): if any user-facing flag or env var changed, the |
| 24 |
relevant page (`Install-from-cache.md` / `Save-to-Github-cache.md` / |
| 25 |
`Making-local-mirror.md`) reflects it. Commit wiki changes separately |
| 26 |
inside the submodule. |
| 27 |
4. **`package.json` verification:** |
| 28 |
- `version` reflects the bump chosen in step 1. |
| 29 |
- `files` whitelist matches what should ship. Tarball contains `bin/`, |
| 30 |
`package.json`, `README.md`, and `LICENSE`. |
| 31 |
- `bin` map points at `bin/install-from-cache.js` and |
| 32 |
`bin/save-to-github-cache.js`. |
| 33 |
- `repository`, `bugs`, `homepage`, `author`, `license` are accurate. |
| 34 |
- `dependencies` is empty (zero-dep policy). |
| 35 |
5. **LICENSE** copyright year includes the current year. |
| 36 |
6. **Sweep dependencies for staleness.** Run `npm outdated`. Bump any |
| 37 |
devDep with a newer major or minor available and verify `npm run js-check` |
| 38 |
still passes. (This package ships zero runtime deps, so the sweep is |
| 39 |
devDep-only — but it still keeps Dependabot quiet.) |
| 40 |
7. **Regenerate the lockfile:** |
| 41 |
``` |
| 42 |
npm install |
| 43 |
``` |
| 44 |
8. **Full check matrix** — all must pass cleanly: |
| 45 |
``` |
| 46 |
npm run lint |
| 47 |
npm run js-check |
| 48 |
npm test |
| 49 |
``` |
| 50 |
9. **Dry-run publish** to verify tarball contents: |
| 51 |
``` |
| 52 |
npm pack --dry-run |
| 53 |
``` |
| 54 |
Confirm NONE of these appear: `tests/`, `wiki/`, `.github/`, `.claude/`, |
| 55 |
`tsconfig*.json`, `scripts/`. |
| 56 |
10. **Stop and report** — surface: |
| 57 |
|
| 58 |
- Chosen version bump and the diff summary since the last tag. |
| 59 |
- Test / lint / pack-dry-run results. |
| 60 |
- Any unresolved issue flagged during the walkthrough. |
| 61 |
Do **not** commit, tag, or publish without explicit user confirmation. |