-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Root): change script execution
- Loading branch information
Showing
4 changed files
with
28 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env node | ||
const program = require('commander') | ||
|
||
program | ||
.name('publish-tagged-packages') | ||
.description('CLI to publish new tagged versions from modified packages in pull requests.') | ||
.version('0.0.1') | ||
|
||
program | ||
.option('-t, --tag [tag]', 'Tag used to publish the packages to NPM.') | ||
.option('-f, --files [files]', 'JSON-stringified list of added and modified files.') | ||
.on('--help', () => { | ||
console.log(' Examples:') | ||
console.log('') | ||
console.log( | ||
' $ node ./scripts/publish-tagged-packages.js --tag ongoing-branch --files \'["packages/sui-mono/foo.js", "packages/sui-bundler/bar.js"]\'' | ||
) | ||
console.log('') | ||
}) | ||
.parse(process.argv) | ||
|
||
const {tag, files} = program.opts() | ||
|
||
console.log({tag, files: JSON.parse(files)}) | ||
|
||
program.parse() |
This file was deleted.
Oops, something went wrong.