We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9436fc5 + 78818ce commit 52b94deCopy full SHA for 52b94de
1 file changed
.github/workflows/ci.yml
@@ -67,6 +67,20 @@ jobs:
67
if: steps.changed.outputs.lint_files != ''
68
run: yarn lint ${{ steps.changed.outputs.lint_files }}
69
70
+ - name: Package name length check
71
+ if: steps.codemods.outputs.dirs != ''
72
+ run: |
73
+ failed=0
74
+ for dir in ${{ steps.codemods.outputs.dirs }}; do
75
+ name=$(node -p "require('./$dir/package.json').name")
76
+ len=${#name}
77
+ if [ "$len" -gt 50 ]; then
78
+ echo "::error::Package name '$name' is $len chars (max 50 for Codemod registry)"
79
+ failed=1
80
+ fi
81
+ done
82
+ [ "$failed" -eq 0 ] || exit 1
83
+
84
- name: Test (changed codemods)
85
if: steps.codemods.outputs.dirs != ''
86
run: |
0 commit comments