From 78818ce222811964f77b418eacbe105af10dc628 Mon Sep 17 00:00:00 2001 From: Paul Schultz Date: Wed, 17 Jun 2026 17:09:43 -0500 Subject: [PATCH] chore: add CI check for 50-char codemod registry name limit The Codemod registry rejects package names over 50 characters. This was discovered when @backstage/migrate-select-combobox-deprecated-props (51 chars) failed to publish. Adds a 'Package name length check' step to CI that runs on changed codemod directories and errors if any package name exceeds the limit. --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a25748a..41cb9b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,6 +67,20 @@ jobs: if: steps.changed.outputs.lint_files != '' run: yarn lint ${{ steps.changed.outputs.lint_files }} + - name: Package name length check + if: steps.codemods.outputs.dirs != '' + run: | + failed=0 + for dir in ${{ steps.codemods.outputs.dirs }}; do + name=$(node -p "require('./$dir/package.json').name") + len=${#name} + if [ "$len" -gt 50 ]; then + echo "::error::Package name '$name' is $len chars (max 50 for Codemod registry)" + failed=1 + fi + done + [ "$failed" -eq 0 ] || exit 1 + - name: Test (changed codemods) if: steps.codemods.outputs.dirs != '' run: |