mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Fixed release script.
This commit is contained in:
parent
7dfac03480
commit
a085ea5134
1 changed files with 11 additions and 8 deletions
|
@ -9,9 +9,12 @@ const childProcess = require('child_process');
|
||||||
const log4js = require('log4js');
|
const log4js = require('log4js');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const semver = require('semver');
|
const semver = require('semver');
|
||||||
const {exec} = require("child_process");
|
const {exec} = require('child_process');
|
||||||
|
|
||||||
log4js.replaceConsole();
|
log4js.configure({appenders: {console: {type: 'console'}},
|
||||||
|
categories: {
|
||||||
|
default: {appenders: ['console'], level: 'info'},
|
||||||
|
}});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
@ -80,9 +83,9 @@ const assertUpstreamOk = (branch, opts = {}) => {
|
||||||
// Check if asciidoctor is installed
|
// Check if asciidoctor is installed
|
||||||
exec('asciidoctor -v', (err, stdout) => {
|
exec('asciidoctor -v', (err, stdout) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log('Please install asciidoctor')
|
console.log('Please install asciidoctor');
|
||||||
console.log('https://asciidoctor.org/docs/install-toolchain/')
|
console.log('https://asciidoctor.org/docs/install-toolchain/');
|
||||||
process.exit(1)
|
process.exit(1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -183,7 +186,7 @@ try {
|
||||||
run('git pull --ff-only', {cwd: '../ether.github.com/'});
|
run('git pull --ff-only', {cwd: '../ether.github.com/'});
|
||||||
console.log('Committing documentation...');
|
console.log('Committing documentation...');
|
||||||
run(`cp -R out/doc/ ../ether.github.com/public/doc/v'${newVersion}'`);
|
run(`cp -R out/doc/ ../ether.github.com/public/doc/v'${newVersion}'`);
|
||||||
run(`npm version ${newVersion}`, {cwd:'../ether.github.com'})
|
run(`npm version ${newVersion}`, {cwd: '../ether.github.com'});
|
||||||
run('git add .', {cwd: '../ether.github.com/'});
|
run('git add .', {cwd: '../ether.github.com/'});
|
||||||
run(`git commit -m '${newVersion} docs'`, {cwd: '../ether.github.com/'});
|
run(`git commit -m '${newVersion} docs'`, {cwd: '../ether.github.com/'});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue