Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use different npm scope #9

Merged
merged 5 commits into from
Aug 23, 2023
Merged

Use different npm scope #9

merged 5 commits into from
Aug 23, 2023

Conversation

mcmire
Copy link
Owner

@mcmire mcmire commented Aug 23, 2023

(TEST)

mcmire and others added 5 commits August 23, 2023 09:38
Currently, when publishing core packages, we use NPM for "production"
releases but GitHub Package Registry for "preview" builds. This works to
keep the list of production versions free of clutter and mitigate the
risk of publishing preview builds as production releases accidentally,
but it also introduces a major pain point.

Usually in order to access a package with a preview build, the developer
must instruct Yarn to use GitHub Package Registry instead of NPM along
with an authentication token, and then update the version of the package
in the manifest to use the preview version. If, however, the package
introduces a new transitive dependency that is not available in preview
form, the developer must undo the changes to the Yarn configuration or
even temporarily add the dependency explicitly to the project in order
to fully install it. In some cases, these steps don't work at all.

To remove this pain point, this commit changes how preview builds are
published so that instead of using a separate registry, we use a
separate NPM scope. This preserves the separation between preview builds
and non-preview builds, and it means that the developer can mix
non-preview and preview versions in the manifest without needing to
reconfigure Yarn.
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
@mcmire mcmire merged commit 5bd95bd into main Aug 23, 2023
51 of 86 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant