Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve npm publishing infra (#7287)
The current npm publishing infra is more manual than necessary. This PR makes the following improvements: 1. Publish all packages in a release unit with one command. Publishing no longer involves running yarn publish-npm multiple times. 2. Stage all packages to a local verdaccio repository before publishing. This catches any compatibility issues that may appear when publishing to npm and allows us to build all packages before publishing any to npm. 3. Publish with a single OTP. The previous infra required an OTP per package to publish to npm. This new infra publishes all packages sequentially after they're built, so it can use a single OTP for all of them. If another OTP is required due to the first one timing out, it asks for another. A future PR will move our nightly verdaccio e2e tests to use this infra, which will allow us to avoid setting the npm registry globally. This will let us run verdaccio tests in parallel with the rest of nightly tests, which should reduce the time taken.
- Loading branch information