-
Notifications
You must be signed in to change notification settings - Fork 3
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: add codemod publish workflow #50
base: main
Are you sure you want to change the base?
Conversation
with: | ||
node-version: 20 | ||
|
||
- name: Install dependencies |
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.
note we use npm
with: | ||
fetch-depth: 0 | ||
|
||
- uses: pnpm/action-setup@v4 |
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.
so this step isn't needed
with: | ||
node-version: 20 |
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.
with: | |
node-version: 20 | |
with: | |
node-version-file: '.nvmrc' |
You can also use https://app.stepsecurity.io/secure-workflow |
📚 Description
I'm Amirabbas from Codemod.
The
userland-migrations
repository serves as the foundation for Node.js community codemods. It's important for the Node.js project to be able to publish these codemods under the official name — automatically and without any concerns.At Codemod, we've developed a GitHub Actions workflow that automates publishing to the Codemod Registry. You can see the workflow in our template repository here.
I believe adding a similar publishing workflow to the
userland-migrations
repo would streamline contributions and improve the developer experience for the broader community.Guide: Setting up an API key and using the publishing action
codemod login
.codemod api-keys:create
.Settings > Secrets and Variables > Actions
.codemods
orrecipes
directory. Note that your codemods should conform to required package structure. Additionally, make sure that yourcodemodrc.json
file is accurate (reference).By doing so, any change made to the
main
branch of your repository will automatically be published to Codemod Registry.