2020-03-29 04:50:46 +00:00
|
|
|
import shell from 'shelljs';
|
2021-04-21 17:35:20 +00:00
|
|
|
import { options } from './utils.mjs';
|
2020-03-11 07:52:41 +00:00
|
|
|
|
2021-04-21 17:35:20 +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
|
|
|
|
2020-03-29 04:50:46 +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
|
|
|
|
2020-04-09 10:47:48 +00:00
|
|
|
// eslint-disable-next-line promise/valid-params,@typescript-eslint/no-floating-promises
|
2020-03-29 04:50:46 +00:00
|
|
|
import('./dispatch-release.mjs').catch();
|
2020-03-28 13:43:35 +00:00
|
|
|
|
2020-03-29 15:31:30 +00:00
|
|
|
// if (err) {
|
|
|
|
// shell.exit(2);
|
|
|
|
// }
|