File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { reportError } from '../utils/errors';
18
18
import { extractZipArchive } from '../utils/system' ;
19
19
import { withTempDir } from '../utils/files' ;
20
20
import { isDryRun } from '../utils/helpers' ;
21
+ import { isPreviewRelease } from '../utils/version' ;
21
22
import { NoneArtifactProvider } from '../artifact_providers/none' ;
22
23
23
24
/** Name of the artifact that contains the UPM package */
@@ -143,12 +144,14 @@ export class UpmTarget extends BaseTarget {
143
144
} else {
144
145
await git . push ( [ 'origin' , 'main' ] ) ;
145
146
const changes = await this . githubTarget . getChangelog ( version ) ;
147
+ const isPrerelease = isPreviewRelease ( version ) ;
146
148
const draftRelease = await this . githubTarget . createDraftRelease (
147
149
version ,
148
150
targetRevision ,
149
151
changes
150
152
) ;
151
- await this . githubTarget . publishRelease ( draftRelease ) ;
153
+ await this . githubTarget . publishRelease ( draftRelease ,
154
+ { makeLatest : ! isPrerelease } ) ;
152
155
}
153
156
} ,
154
157
true ,
You can’t perform that action at this time.
0 commit comments