Skip to content

Commit a462e6b

Browse files
committed
Revert "chore(repo): Fix snapshot release"
This reverts commit 8b53323.
1 parent 0993f57 commit a462e6b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

scripts/snapshot.mjs

+6-7
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,16 @@ await $`npx json -I -f ${constants.ChangesetConfigFile} -e "this.changelog = fal
3333
try {
3434
// exit pre-release mode if we're in it
3535
await $`npx changeset pre exit`;
36-
} catch (e) {}
37-
38-
try {
39-
// generate a temp .md file that indicates that all packages have changes
40-
// in order to force a snapshot release
41-
await $`touch .changeset/snap.md && echo ${snapshot} > .changeset/snap.md`;
4236
// bump the version of all affected packages
4337
// this will remove the prerelease versions
4438
// but will also clear the changeset .md files
4539
await $`npx changeset version`;
46-
} catch (e) {}
40+
// generate a temp .md file that indicates that all packages have changes
41+
// in order to force a snapshot release
42+
await $`touch .changeset/snap.md && echo ${snapshot} > .changeset/snap.md`;
43+
} catch (e) {
44+
// otherwise, do nothing
45+
}
4746

4847
const res = await $`npx changeset version --snapshot ${prefix}`;
4948
const success = !res.stderr.includes('No unreleased changesets found');

0 commit comments

Comments
 (0)