dillon1000/react

Commit

[compiler] Refactor release script

Updates the release script to publish tags as well as take a `--ci`
option

Test plan:
```
$ yarn npm:publish --debug --frfr

yarn run v1.22.22
$ node scripts/release/publish --debug --frfr
ℹ Preparing to publish (for real) [debug=true]
ℹ Building packages
✔ Successfully built babel-plugin-react-compiler
✔ Successfully built eslint-plugin-react-compiler
✔ Successfully built react-compiler-healthcheck
NPM 2-factor auth code: ******
✔ Wrote package.json for [email protected]

========== babel-plugin-react-compiler ==========

⠧ Publishing [email protected] to npm
+ [email protected]

✔ Successfully published babel-plugin-react-compiler to npm
ℹ dry-run: npm dist-tag add [email protected] experimental --otp=******
✔ Successfully pushed dist-tag experimental for babel-plugin-react-compiler to npm
✔ Wrote package.json for [email protected]

========== eslint-plugin-react-compiler ==========

⠹ Publishing [email protected] to npm
+ [email protected]

✔ Successfully published eslint-plugin-react-compiler to npm
ℹ dry-run: npm dist-tag add [email protected] experimental --otp=******
✔ Successfully pushed dist-tag experimental for eslint-plugin-react-compiler to npm
✔ Wrote package.json for [email protected]

========== react-compiler-healthcheck ==========

⠙ Publishing [email protected] to npm
+ [email protected]

✔ Successfully published react-compiler-healthcheck to npm
ℹ dry-run: npm dist-tag add [email protected] experimental --otp=******
✔ Successfully pushed dist-tag experimental for react-compiler-healthcheck to npm

✅ All done
✨  Done in 50.64s.
```

ghstack-source-id: 405cc001c2ab2adaad2bfe4f11fdb7fd28d7e2d1
Pull Request resolved: https://github.com/facebook/react/pull/30614
Browse files
Changed paths6 files
First-parent comparison
M compiler/package.json ModifiedR compiler/scripts/release/publish-manual.js →compiler/scripts/release/publish.js RenamedA compiler/scripts/release/shared/build-packages.js AddedA compiler/scripts/release/shared/packages.js AddedA compiler/scripts/release/shared/utils.js AddedM compiler/yarn.lock Modified
Patch

Files changed

Rendering syntax-highlighted changes…