Fix the computed publish plan path passed internally to changeset pack by the /pack subaction (#663)

* Fix the computed publish plan path passed internally to `changeset pack` by the `/pack` subaction

* fix it
This commit is contained in:
Mateusz Burzyński
2026-06-23 10:00:39 +00:00
committed by GitHub
parent cf37561cd9
commit ccb38113ea
2 changed files with 8 additions and 1 deletions
+3 -1
View File
@@ -64,7 +64,9 @@ async function getMode(): Promise<ModeResult> {
const cwd = process.cwd();
const publishPlanPath = path.join(
process.env.RUNNER_TEMP ?? (await fs.realpath(os.tmpdir())),
`changeset-publish-plan-${Date.now()}.json`,
`changeset-publish-plan-${Date.now()}`,
// we need a stable filename here (in a unique dirname) so the artifact download can find this cleanly
"publish-plan.json",
);
await execChangesetsCli(["publish-plan", "--output", publishPlanPath], {
cwd,