renovate/tools/release.mjs
2020-03-11 10:11:01 +01:00

19 lines
483 B
JavaScript

import shell from 'shelljs';
import { program, exec } from './utils.mjs';
const version = program.release;
const sha = program.sha;
let err = false;
shell.echo(`Publishing version: ${version}`);
shell.echo('Publishing docker images ...');
err = err && !exec(`./.github/workflows/release-docker.sh ${version} ${sha}`);
shell.echo('Publishing npm package ...');
err =
err &&
!exec(`yarn publish --non-interactive --new-version ${version} --verbose`);
if (err) shell.exit(1);