Bump and publish npm packages for v tags (#10542)

* Bump and publish npm packages for v tags

Signed-off-by: Artem Savchenko <armisav@gmail.com>

* Add permmission block

Signed-off-by: Artem Savchenko <armisav@gmail.com>

---------

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko
2026-02-23 08:59:09 +07:00
committed by GitHub
parent 8e32b26c17
commit 7c92000d0c
3 changed files with 99 additions and 6 deletions
+14 -1
View File
@@ -94,7 +94,20 @@ function main () {
console.log('bump version ...', version)
const config = JSON.parse(execSync('rush list -p --json', { encoding: 'utf-8' }))
const output = execSync('node common/scripts/install-run-rush.js list -p --json', { encoding: 'utf-8', cwd: repoRoot })
const lines = output.split('\n')
let jsonStart = -1
for (let i = 0; i < lines.length; i++) {
if (lines[i].trim().startsWith('{')) {
jsonStart = i
break
}
}
if (jsonStart === -1) {
console.error('Could not find JSON output from rush list')
process.exit(1)
}
const config = JSON.parse(lines.slice(jsonStart).join('\n'))
fillPackages(config)