Skip to content
Open
Changes from all commits
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
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
description: "Tag to publish (format: v1.0.0@codemod-name)"
required: true
type: string
permissions:
id-token: write
contents: read

jobs:
validate-and-publish:
Expand Down Expand Up @@ -98,10 +101,7 @@ jobs:
working-directory: ${{ steps.parse-tag.outputs.codemod-path }}
run: npm run --if-present 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 }}
Expand Down