mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Inherit exit code from publish call
This commit is contained in:
+2
-1
@@ -23,9 +23,10 @@ packageJsonRaw = packageJsonRaw.replace(/("version": ")3.10.0(")/, `$1${nextVers
|
||||
fs.writeFileSync(packageJsonFile, packageJsonRaw);
|
||||
|
||||
// Publish
|
||||
cp.spawnSync('npm', ['publish', '--tag', tag], {
|
||||
const result = cp.spawn('npm', ['publish', '--tag', tag], {
|
||||
stdio: 'inherit'
|
||||
});
|
||||
result.on('exit', code => process.exit(code));
|
||||
|
||||
function getNextVersion(tag) {
|
||||
if (!/^[0-9]+\.[0-9]+\.[0-9]+$/.exec(packageJson.version)) {
|
||||
|
||||
Reference in New Issue
Block a user