mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
Fix CI
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
d186a6f25c
commit
a088b51e24
@ -94,15 +94,21 @@ function bumpPackage (name, dependency, depVersion) {
|
||||
|
||||
function publish (name) {
|
||||
const package = packages[name]
|
||||
execSync(`cd ${package.path}`, { encoding: 'utf-8' })
|
||||
execSync(`npm publish`, { encoding: 'utf-8' })
|
||||
execSync(`cd ../..`, { encoding: 'utf-8' })
|
||||
execSync(`cd ${package.path} && npm publish && cd ../..`, { encoding: 'utf-8' })
|
||||
}
|
||||
|
||||
function getConfig () {
|
||||
const res = execSync('node common/scripts/install-run-rush.js list -p --json', { encoding: 'utf-8' })
|
||||
const index = res.indexOf('{')
|
||||
const list = res.substring(index)
|
||||
const config = JSON.parse(list)
|
||||
return config
|
||||
}
|
||||
|
||||
function main () {
|
||||
const args = process.argv
|
||||
|
||||
const config = JSON.parse(execSync('node common/scripts/install-run-rush.js list -p --json', { encoding: 'utf-8' }))
|
||||
const config = getConfig()
|
||||
|
||||
fillPackages(config)
|
||||
buildDependencyTree()
|
||||
|
Loading…
Reference in New Issue
Block a user