@@ -10,7 +10,8 @@ import semver from 'semver'
10
10
import yargsParser from 'yargs-parser'
11
11
import {
12
12
isMonorepoProject ,
13
- glob
13
+ glob ,
14
+ usesReleasePlease
14
15
} from '../utils.js'
15
16
import { checkBuildFiles } from './check-build-files.js'
16
17
import { checkLicenseFiles } from './check-licence-files.js'
@@ -227,9 +228,14 @@ function chooseVersions (deps, list) {
227
228
* @param {Record<string, string> } siblingVersions
228
229
*/
229
230
function selectVersions ( deps , list , siblingVersions ) {
231
+ // release-please updates sibling versions to the latest patch releases but
232
+ // we try to update to the latest minor so skip that if release please is
233
+ // in use
234
+ const ignoreSiblingDeps = usesReleasePlease ( )
235
+
230
236
Object . entries ( list ) . forEach ( ( [ key , value ] ) => {
231
237
if ( deps [ key ] != null ) {
232
- if ( siblingVersions [ key ] != null ) {
238
+ if ( siblingVersions [ key ] != null && ! ignoreSiblingDeps ) {
233
239
// take sibling version if available
234
240
deps [ key ] = siblingVersions [ key ]
235
241
} else {
@@ -438,13 +444,14 @@ export default new Listr([
438
444
const { branchName, repoUrl } = await getConfig ( projectDir )
439
445
const manifest = fs . readJSONSync ( path . join ( projectDir , 'package.json' ) )
440
446
const monorepo = manifest . workspaces != null
447
+ const defaultCiFile = fs . existsSync ( path . resolve ( process . cwd ( ) , '.github' , 'workflows' , 'main.yml' ) ) ? 'main.yml' : 'js-test-and-release.yml'
441
448
442
449
const ciFile = ( await prompt . get ( {
443
450
properties : {
444
451
ciFile : {
445
452
description : 'ciFile' ,
446
453
required : true ,
447
- default : 'js-test-and-release.yml'
454
+ default : defaultCiFile
448
455
}
449
456
}
450
457
} ) ) . ciFile . toString ( )
0 commit comments