aboutsummaryrefslogblamecommitdiffstats
path: root/packages/monorepo-scripts/src/publish_release_notes.ts
blob: 13cf0d85df7ed83feb6a3734bc3159ff2386fcd0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13

                               
                                                                        
                                      
 







                                                                                       
              
                                   


                                                                                         
                                                                 



                    
import * as yargs from 'yargs';

import { publishReleaseNotesAsync } from './utils/github_release_utils';
import { utils } from './utils/utils';

const args = yargs
    .option('isDryRun', {
        describe: 'Whether we wish to do a dry run, not committing anything to Github',
        type: 'boolean',
        demandOption: true,
    })
    .example('$0 --isDryRun true', 'Full usage example').argv;

(async () => {
    const isDryRun = args.isDryRun;
    const shouldIncludePrivate = false;
    const allUpdatedPackages = await utils.getUpdatedPackagesAsync(shouldIncludePrivate);

    await publishReleaseNotesAsync(allUpdatedPackages, isDryRun);
})().catch(err => {
    utils.log(err);
    process.exit(1);
});