Unverified Commit 7c639ddb authored by Hong Minhee's avatar Hong Minhee
Browse files

Fix npm auth config in remove-npm-pr-tags workflow

Fix bug introduced in https://github.com/fedify-dev/fedify/pull/312
where npm auth token was not properly configured for tag removal operations.

https://github.com/fedify-dev/fedify/issues/296



Co-Authored-By: default avatarClaude <noreply@anthropic.com>
parent 9f92dfe0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ jobs:
        # Remove tags in fedify packages if exists
        run: |
          TAG="pr-${PR_NUMBER}"

          npm config set //registry.npmjs.org/:_authToken "$NPM_AUTH_TOKEN"
          pnpm list --depth -1 -r --json | jq -r '.[].name | select(.)' | while IFS= read -r PKG; do
            if npm dist-tag ls "$PKG" | grep -q "^$TAG:" ; then
              npm dist-tag rm "$PKG" "$TAG"
@@ -37,7 +37,6 @@ jobs:
              echo "Tag $TAG does not exist on $PKG"
            fi
          done

        env:
          NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
          PR_NUMBER: ${{ github.event.pull_request.number }}

fedify/vocab/.vocab.ts

0 → 100644
+69821 −0

File added.

Preview size limit exceeded, changes collapsed.