We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e04c89 commit 46e097cCopy full SHA for 46e097c
.github/workflows/release.yml
@@ -560,13 +560,18 @@ jobs:
560
exit 1
561
fi
562
563
- - name: Reject "latest" dist_tag
+ - name: Validate packages
564
env:
565
PACKAGES: ${{ inputs.packages }}
566
run: |
567
echo "$PACKAGES" | jq -e 'all(.[]; .dist_tag != "latest")' > /dev/null || {
568
echo "::error::'latest' dist_tag is not allowed on this path"; exit 1;
569
}
570
+ invalid=$(echo "$PACKAGES" | jq -r '.[] | select(.name | test("^@clerk/[a-z0-9][a-z0-9-]*$") | not) | .name')
571
+ if [ -n "$invalid" ]; then
572
+ echo "::error::Invalid package name(s). Expected @clerk/<kebab-case>. Got: $invalid"
573
+ exit 1
574
+ fi
575
576
- name: Checkout source_ref
577
uses: actions/checkout@v4
0 commit comments