Skip to content

Commit a182050

Browse files
committed
fix validate script
1 parent d3711ad commit a182050

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/scripts/validate-changesets.mts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import { $, echo, fs } from 'zx';
1010
* Private/ignored packages (per .changeset/config.json) are excluded automatically.
1111
*/
1212

13-
const tmpDir = fs.mkdtempSync('/tmp/changeset-status-');
14-
const STATUS_FILE = `${tmpDir}/status.json`;
13+
const STATUS_FILE = 'changeset-status.json';
1514

1615
const log = {
1716
error: (msg: string) => echo(styleText('red', msg)),
@@ -41,7 +40,7 @@ fs.writeJsonSync(STATUS_FILE, { releases: [], changesets: [] });
4140
await $`yarn changeset status --since=origin/main --output ${STATUS_FILE}`.nothrow();
4241

4342
const data: ChangesetStatusOutput = fs.readJsonSync(STATUS_FILE);
44-
fs.removeSync(tmpDir);
43+
fs.removeSync(STATUS_FILE);
4544

4645
// Fail: major version bumps
4746
const majorBumps = data.releases.filter((release) => release.type === 'major');

0 commit comments

Comments
 (0)