Skip to content

Commit 4dd59a7

Browse files
committed
ci(ui-scripts): trying to fix CI
1 parent add0117 commit 4dd59a7

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/manual-release-from-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
- uses: actions/checkout@v4
99
with:
1010
fetch-depth: 0
11+
fetch-tags: 'true'
1112
- uses: actions/setup-node@v4
1213
with:
1314
node-version: '24'

packages/ui-scripts/lib/utils/npm.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,12 @@ export async function bumpPackages(packageName, requestedVersion) {
103103
'--conventional-commits',
104104
'--loglevel=silly'
105105
]
106-
await new Promise((resolve, reject) => {
107-
spawn('lerna', cmdArgs) // TODO hangs here
108-
.on('close', (code) =>
109-
code === 0 ? resolve() : reject(new Error(`Exit code: ${code}`))
110-
)
111-
.on('error', reject)
112-
})
106+
const result = runCommandSync('lerna', cmdArgs)
113107
// TODO REMOVE DEBUG LOG
108+
if (result.error) {
109+
info('ERROR:' + result.error)
110+
process.exit(1)
111+
}
114112
console.log('\n\nDEBUG LOG 0.1: before syncRootPackageVersion')
115113
releaseVersion = await syncRootPackageVersion(true)
116114

0 commit comments

Comments
 (0)