File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { releaseVersion , releaseChangelog , releasePublish } from 'nx/release'
2
2
import { execSync } from 'child_process'
3
3
; ( async ( ) => {
4
+ const { workspaceVersion : canaryCheckWorkspaceVersion } = await releaseVersion ( {
5
+ verbose : true ,
6
+ gitCommit : false ,
7
+ stageChanges : false ,
8
+ dryRun : true , // Just to check if there are any conventional commits that warrant a release
9
+ } )
10
+
11
+ // If no version bump detected, exit early
12
+ if ( ! canaryCheckWorkspaceVersion || canaryCheckWorkspaceVersion === '0.0.0' ) {
13
+ console . log (
14
+ 'ℹ️ No conventional commits found that warrant a release. Skipping canary release.'
15
+ )
16
+ process . exit ( 0 )
17
+ }
18
+
4
19
const { workspaceVersion, projectsVersionData } = await releaseVersion ( {
5
20
verbose : true ,
6
21
gitCommit : false ,
@@ -63,8 +78,5 @@ import { execSync } from 'child_process'
63
78
console . log ( '⚠️ Continuing with release despite gotrue-js publish failure' )
64
79
}
65
80
66
- execSync ( 'git stash' )
67
- console . log ( '✅ All changes stashed.' )
68
-
69
81
process . exit ( Object . values ( publishResult ) . every ( ( result ) => result . code === 0 ) ? 0 : 1 )
70
82
} ) ( )
You can’t perform that action at this time.
0 commit comments