-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat: double publish the NPM packages into GitHub packages for use by internal repositories also using the @coveo scope #3251
Conversation
… internal repositories also using the @coveo scope https://coveord.atlassian.net/browse/KIT-2806
Pull Request Report PR Title ❌ Title should follow the conventional commit spec: (optional scope): Example: feat(headless): add result-list controller Bundle Size
|
lgtm, tho don't forget to update semantic-monorepo-tools |
Unfortunately, I'm not sure this would publish successfully, since our workflows set It looks like something more may be necessary to allow authentication to GitHub Packages for packages published to GitHub Packages. Haven't looked too deep into it, but appending the Even better, maybe it's possibly to add the token as an option to the publish function? |
Good catch @btaillon-coveo, but I think we should follow https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#publish-to-npmjs-and-gpr-with-npm Won't even need to modify the JS files. |
Sounds pretty neat! I've made some changes around this, but tbh I'm not sure what is the kosher way to test it. Should I try to publish a dummy release? |
If you want to test itYou could temporarily bring back the test setup that I removed here: #2924 This setup was running Verdaccio as a local registry for testing, and was updating You could run yours in Here's the setup I was using to test in a PR (in addition to those removed from #2924): be08cb6 OtherwiseThis may be overkill just to test it. May be better to YOLO and just 🤞 |
adapted scripts for Nx https://coveord.atlassian.net/browse/KIT-2806
Yolo'ing this to test in production :brace: |
This PR depends on this other one to be merged and published first: coveo/semantic-monorepo-tools#189
Some of our repos use internal NPM packages published on GitHub Packages under the @coveo scope. For these we need to override the registry for that scope to the GitHub one, but this breaks when loading @coveo-scoped public packages from NPM. Since we can't change the scope for GitHub (it has to be the same as the org), there is not much we can do easily ... besides double publishing our few public packages. So here goes.
https://coveord.atlassian.net/browse/KIT-2806