-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ci: migrate to npm trusted publishing (OIDC) and update publishing workflow #16630
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
Conversation
- necessary for the OIDC authentication for trusted npm publishing via workflows
Fixes GH-13319 The GH pages are published on each release, and we publish them after the actual package release was successful, so no need for an additional publishing here
sgraband
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes @ndoschek! Looks pretty good i just have some inline comments. Could you take a look at those?
As we need to switch to trusted npm publishing using OIDC authenticaction, we merge the next and release publish workflows to one which handles all cases. Fixes GH-16434
|
Thanks @sgraband for your review! I updated my commits and force pushed them, would be great if you could have another look! TIA! |
| - [ ] Folder structure follows Theia conventions (see [Code Organization](https://github.com/eclipse-theia/theia/blob/master/doc/code-organization.md)) | ||
| - [ ] Package is added to the example applications (i.e. `browser`, `browser-only`, `electron`) | ||
| - [ ] New packages must be published manually by a Theia committer initially (see also [Release Process - Newly added Theia packages](https://github.com/eclipse-theia/theia/blob/master/doc/Publishing.md#212-newly-added-theia-packages---publish-initially-to-npm)). | ||
| If you are not a committer or do not have enough time, please open a follow-up ticket with the label `toDoWithRelease` to inform the release team about the new package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to clarify that this is in the Theia IDE repo, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No I think theia is correct, as this is about the actual publishing of a new @theia package on NPM. This is part of the Theia release.
Adding this newly published package to the Theia IDE is then a separate step, and right below.
(I just introduced the todoWithRelease concept also for the theia repo as well, hope that's not too confusing?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes sorry, i was confused for a second 😄 Thanks for clarifying.
sgraband
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for the contribution and the iterations. Great improvement 🎉
Follow up of GH-16630 - fix checkout step and make sure to fetch master branch for comparison - fix commentBody to use backticks to have a proper multi-line string in JavaScript
* fix check-new-packages.yml workflow Follow up of GH-16630 - fix checkout step and make sure to fetch master branch for comparison - fix commentBody to use backticks to have a proper multi-line string in JavaScript - add an example issue link for the initial manual publish run for new theia packages * fix: check-publish script for next releases The checkPublish script did not work properly for next releases, if a new package was freshly released. This change updates the checkPublish script to check for next releases if all packages (also new ones) were published to npm.
What it does
Note
@theiapackages were updated today.How to test
Follow-ups
Breaking changes
Attribution
Review checklist
nlsservice (for details, please see the Internationalization/Localization section in the Coding Guidelines)Reminder for reviewers