mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
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:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@changesets/action": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix the computed publish plan path passed internally to `changeset pack` by the `/pack` subaction.
|
||||||
@@ -64,7 +64,9 @@ async function getMode(): Promise<ModeResult> {
|
|||||||
const cwd = process.cwd();
|
const cwd = process.cwd();
|
||||||
const publishPlanPath = path.join(
|
const publishPlanPath = path.join(
|
||||||
process.env.RUNNER_TEMP ?? (await fs.realpath(os.tmpdir())),
|
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], {
|
await execChangesetsCli(["publish-plan", "--output", publishPlanPath], {
|
||||||
cwd,
|
cwd,
|
||||||
|
|||||||
Reference in New Issue
Block a user