Skip to content

Commit 4cc6d2c

Browse files
dahliaclaude
andcommitted
Fix remove-npm-pr-tags to filter out example packages
The pnpm list command was returning all workspace packages including examples that are not published to npm. This caused 404 errors when trying to remove dist-tags from non-existent packages. Filter packages to only include those that: - Start with @fedify/ scope - Are not marked as private Co-Authored-By: Claude <[email protected]>
1 parent 95c2c5f commit 4cc6d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/remove-npm-pr-tags.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: |
2121
TAG="pr-${PR_NUMBER}"
2222
npm config set //registry.npmjs.org/:_authToken "$NPM_AUTH_TOKEN"
23-
pnpm list --depth -1 -r --json | jq -r '.[].name | select(.)' | while IFS= read -r PKG; do
23+
pnpm list --depth -1 -r --json | jq -r '.[] | select(.name and (.name | startswith("@fedify/")) and (.private | not)) | .name' | while IFS= read -r PKG; do
2424
if npm dist-tag ls "$PKG" | grep -q "^$TAG:" ; then
2525
npm dist-tag rm "$PKG" "$TAG"
2626
echo "Removed $TAG from $PKG"

0 commit comments

Comments
 (0)