| 1 | import { execa } from 'execa'; |
| 2 | |
| 3 | async function publish(): Promise<void> { |
| 4 | // publish the stable public packages |
| 5 | await execa( |
| 6 | `yarn lerna exec --no-bail -- npm_config_registry=https://registry.npmjs.org/ npm publish --access public`, |
| 7 | { |
| 8 | shell: 'bash', |
| 9 | }, |
| 10 | ); |
| 11 | |
| 12 | // publish the prereleases private packages if any |
| 13 | // await execa( |
| 14 | // `yarn lerna exec --scope '<the private package>' --no-bail -- npm_config_registry=https://registry.npmjs.org/ npm publish --access private --tag alpha --tag latest`, |
| 15 | // { |
| 16 | // shell: 'bash', |
| 17 | // }, |
| 18 | // ); |
| 19 | } |
| 20 | |
| 21 | publish(); |