-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
18 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,9 @@ | ||
import shell from 'shelljs'; | ||
import { options } from './utils.mjs'; | ||
import { options } from './utils/options.mjs'; | ||
|
||
const version = options.release; | ||
// const sha = program.sha; | ||
|
||
// let err = false; | ||
|
||
shell.echo(`Publishing version: ${version}`); | ||
|
||
// shell.echo('Publishing npm package ...'); | ||
// if ( | ||
// !exec(`npm --no-git-tag-version version ${version}`) || | ||
// !exec(`npm publish`) | ||
// ) { | ||
// err = true; | ||
// } | ||
|
||
// shell.echo('Publishing docker images ...'); | ||
// if (!exec(`./.github/workflows/release-docker.sh ${version} ${sha}`)) { | ||
// err = true; | ||
// } | ||
|
||
// eslint-disable-next-line promise/valid-params,@typescript-eslint/no-floating-promises | ||
import('./dispatch-release.mjs').catch(); | ||
|
||
// if (err) { | ||
// shell.exit(2); | ||
// } |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Command } from 'commander'; | ||
|
||
const program = new Command(); | ||
program | ||
.version('0.0.1') | ||
.requiredOption('-r, --release <type>', 'Version to use') | ||
.option('-s, --sha <type>', 'Git sha to use') | ||
.option('-t, --tag <type>', 'Npm dist-tag to publish to') | ||
.option('-d, --dry-run'); | ||
|
||
program.parse(process.argv); | ||
|
||
export const options = program.opts(); | ||
|
||
export { program }; |