Bundles all dependencies into `update-tags/dist/index.mjs` and
`create-cache-keys/dist/index.mjs`, so the actions run without
`node_modules`, and stops committing `node_modules` to git.
- `private/build.ts` sets `noExternal: [/.*/]`, plus a `createRequire`
banner because bundled CommonJS dependencies (`tunnel`, `undici`,
`semver`) call `require()` for Node built-ins, which an ES module does
not have.
- Removes the 4,283 tracked `node_modules` files, the
`!node_modules/...` exceptions in `.gitignore` and `write-gitignore.sh`.
- The release now commits `./dist/build.js` and `./*/dist/**/*` instead
of `./**/dist/**/*`. The old glob also matched `node_modules/*/dist`, so
release commits added dev tools such as `tsup/dist` and `vitest/dist`.
Before this change, the actions loaded `@actions/core` from the
committed `node_modules`, so a bump in `package.json` (such as #122) did
not reach callers.
Refs #122
Refs INT-1976
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>