Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/codemod_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
required: true
type: string

permissions:
id-token: write
contents: read

jobs:
validate-and-publish:
name: Validate and Publish Codemod
Expand Down Expand Up @@ -103,14 +107,11 @@ jobs:
working-directory: ${{ steps.parse-tag.outputs.codemod-path }}
run: node --test

- name: Authenticate with Codemod registry
env:
CODEMOD_TOKEN: ${{ secrets.CODEMOD_TOKEN }}
run: npx codemod login --api-key "$CODEMOD_TOKEN"

- name: Publish codemod
working-directory: ${{ steps.parse-tag.outputs.codemod-path }}
run: npx codemod publish
- name: Publish codemod to registry
uses: codemod/publish-action@v1
with:
path: ${{ steps.parse-tag.outputs.codemod-path }}
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent indentation in the with block. According to the codebase conventions (see .github/workflows/ci.yml:67-69, 72-75), the with keyword should use 2-space indentation and the parameters should use 2 additional spaces. The current configuration uses 4 spaces for the path parameter instead of the expected 2 spaces.

Copilot uses AI. Check for mistakes.

- name: Create release summary
env:
Expand Down
Loading