File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ const setOutput = (key, val) => {
20
20
console . log ( update . updater . changelogEntry )
21
21
console . log ( '-' . repeat ( 40 ) )
22
22
}
23
+ for ( const update of val . updates . filter ( u => u . updater . rawContent ) ) {
24
+ console . log ( 'package:' , update . path )
25
+ console . log ( '-' . repeat ( 40 ) )
26
+ console . log ( JSON . parse ( update . updater . rawContent ) . name )
27
+ console . log ( JSON . parse ( update . updater . rawContent ) . version )
28
+ console . log ( '-' . repeat ( 40 ) )
29
+ }
23
30
}
24
31
} else {
25
32
core . setOutput ( key , JSON . stringify ( val ) )
Original file line number Diff line number Diff line change @@ -105,9 +105,11 @@ module.exports = class extends NodeWorkspace {
105
105
// except it only updates the package.json instead of appending
106
106
// anything to changelogs since we've already done that in preconfigure.
107
107
updateCandidate ( candidate , pkg , updatedVersions ) {
108
+ const newVersion = updatedVersions . get ( pkg . name )
108
109
const graphPackage = this . packageGraph . get ( pkg . name )
109
- const updatedPackage = pkg . clone ( )
110
110
111
+ const updatedPackage = pkg . clone ( )
112
+ updatedPackage . version = newVersion . toString ( )
111
113
for ( const [ depName , resolved ] of graphPackage . localDependencies ) {
112
114
const depVersion = updatedVersions . get ( depName )
113
115
if ( depVersion && resolved . type !== 'directory' ) {
You can’t perform that action at this time.
0 commit comments