Skip to content

Conversation

@bjohansebas
Copy link
Member

@bjohansebas bjohansebas commented Oct 31, 2025

Many thanks to the Node.js team for the CI setup they have for publishing to the codemod platform. I made some changes so that publishing now requires approval through a GitHub environment.

You just need to add environment: publish
imagen

and the environment has the following configuration to reduce the chance of new codemods being published without prior authorization from a team member.

imagen imagen

I also created a token that exists only within the environment. It’s valid for one year, but I can change the token’s duration if that seems too long, though I don’t think we’ll want to be rotating it too frequently.

Signed-off-by: Sebastian Beltran <bjohansebas@gmail.com>
@bjohansebas bjohansebas changed the title ci: publish to codemod and ci for testing ci: publish to codemod Oct 31, 2025
@bjohansebas bjohansebas requested a review from jonchurch October 31, 2025 22:19
@bjohansebas bjohansebas marked this pull request as ready for review October 31, 2025 22:23
@bjohansebas
Copy link
Member Author

The force push was to remove the change I was making to the CI, but I think I’d rather make that change in a separate PR to adapt it to the new infrastructure that the package will use, which ideally will follow the one Node.js has.

@AugustinMauroy
Copy link
Contributor

It's look good to me. But I assume that you (express) will use this ci to publish to the Codemod Registry

@bjohansebas
Copy link
Member Author

But I assume that you (express) will use this ci to publish to the Codemod Registry

yes!

@bjohansebas bjohansebas merged commit f6fcd0d into main Nov 7, 2025
43 checks passed
@bjohansebas bjohansebas deleted the codemod-publish branch November 7, 2025 23:53
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.

3 participants