File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -33,17 +33,16 @@ await $`npx json -I -f ${constants.ChangesetConfigFile} -e "this.changelog = fal
33
33
try {
34
34
// exit pre-release mode if we're in it
35
35
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` ;
42
36
// bump the version of all affected packages
43
37
// this will remove the prerelease versions
44
38
// but will also clear the changeset .md files
45
39
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
+ }
47
46
48
47
const res = await $ `npx changeset version --snapshot ${ prefix } ` ;
49
48
const success = ! res . stderr . includes ( 'No unreleased changesets found' ) ;
You can’t perform that action at this time.
0 commit comments