renovate/tools/release.mjs

30 lines
685 B
JavaScript
Raw Normal View History

import shell from 'shelljs';
import { options } from './utils.mjs';
2020-03-11 07:52:41 +00:00
const version = options.release;
2020-03-29 15:31:30 +00:00
// const sha = program.sha;
2020-03-11 07:52:41 +00:00
2020-03-29 15:31:30 +00:00
// let err = false;
2020-03-11 07:52:41 +00:00
shell.echo(`Publishing version: ${version}`);
2020-03-11 07:52:41 +00:00
2020-03-29 15:31:30 +00:00
// shell.echo('Publishing npm package ...');
// if (
// !exec(`npm --no-git-tag-version version ${version}`) ||
// !exec(`npm publish`)
// ) {
// err = true;
// }
2020-03-11 07:52:41 +00:00
2020-03-29 15:31:30 +00:00
// shell.echo('Publishing docker images ...');
// if (!exec(`./.github/workflows/release-docker.sh ${version} ${sha}`)) {
// err = true;
// }
2020-03-11 16:09:35 +00:00
// eslint-disable-next-line promise/valid-params,@typescript-eslint/no-floating-promises
import('./dispatch-release.mjs').catch();
2020-03-29 15:31:30 +00:00
// if (err) {
// shell.exit(2);
// }