| 39 | } |
| 40 | |
| 41 | async function printFinalInstructions(currentCommitHash, archivePath) { |
| 42 | console.log(''); |
| 43 | console.log( |
| 44 | 'You are now ready to publish the extension to Chrome, Edge, and Firefox:' |
| 45 | ); |
| 46 | console.log( |
| 47 | ` ${chalk.blue.underline( |
| 48 | 'https://fburl.com/publish-react-devtools-extensions' |
| 49 | )}` |
| 50 | ); |
| 51 | console.log(''); |
| 52 | console.log('When publishing to Firefox, remember the following:'); |
| 53 | console.log(` Commit Hash: ${chalk.bold(currentCommitHash)}`); |
| 54 | console.log(` Git archive: ${chalk.bold(archivePath)}`); |
| 55 | console.log(''); |
| 56 | console.log('Also consider syncing this release to Facebook:'); |
| 57 | console.log(` ${chalk.bold.green('js1 upgrade react-devtools')}`); |
| 58 | } |
| 59 | |
| 60 | async function publishToNPM() { |
| 61 | const {otp} = await inquirer.prompt([ |