mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
* ci(publish): publish prebuilt tarballs from a job that runs no release-commit code Builds, lifecycle scripts and packing move to a pack job with a read-only token and no secrets. The publish job, which holds the npm token and the write token, checks each tarball's name and version against the release and uploads it with lifecycle scripts off. A version already on npm with other contents fails the first attempt instead of being skipped. * ci(publish): prerelease tag pushes publish only after a maintainer approves A prerelease tag can come from any prerelease branch, which no PR review covers. Tag-push runs now use the npm-prerelease environment, which requires a maintainer's approval. Merged release PRs keep the npm-publish environment. * ci(publish): keep every publish in the approval-gated npm-publish environment npm's trusted publishers are pinned to npm-publish, and that environment now requires a maintainer's approval with self-review prevented. A second environment would fail npm auth, so the workflow keeps npm-publish for every trigger. The docs and test name it as the approval gate.