mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
19 lines
483 B
JavaScript
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);
|