mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
9cd4adb26c
npm Trusted Publishers only supports ONE (repo, workflow, environment) tuple per package, so the two split workflows cannot both be granted OIDC publish rights. Consolidate into release.yml with a mode input: - mode=stable -> publish-stable job, environment=production (reviewer gate), contents:write (push lightweight tag). - mode=channel -> publish-channel job, no environment, contents:read. Concurrency group keys on mode + channel so stable serializes globally and channels serialize per dist-tag. Trusted Publisher entry should now point at release.yml with environment left blank (matches both the production-gated stable job and the env-less channel job).