Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

ci(mcp): remove debug now that root cause is identified

Louis Beaumont83b7854b486e
diff --git a/.github/workflows/release-mcp.yml b/.github/workflows/release-mcp.yml
index 978adf32e..d26d50014 100644
--- a/.github/workflows/release-mcp.yml
+++ b/.github/workflows/release-mcp.yml
@@ -28,22 +28,12 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
- if [ -z "$NPM_TOKEN" ]; then
- echo "::error::NPM_TOKEN secret is empty or not set"
+ if [ -z "$NPM_TOKEN" ] || [ "${#NPM_TOKEN}" -lt 10 ]; then
+ echo "::error::NPM_TOKEN secret looks invalid (length ${#NPM_TOKEN})"
exit 1
fi
- echo "NPM_TOKEN length: ${#NPM_TOKEN}"
- echo "NPM_TOKEN prefix: ${NPM_TOKEN:0:4}***"
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
- echo ".npmrc bytes: $(wc -c < ~/.npmrc)"
- echo ".npmrc structure:"
- sed -E 's/(_authToken=).+/\1<redacted>/' ~/.npmrc
- echo "node:" && node --version
- echo "npm:" && npm --version
- echo "--- raw whoami HTTP ---"
- curl -sS -w "HTTP %{http_code}\n" -H "Authorization: Bearer ${NPM_TOKEN}" https://registry.npmjs.org/-/whoami | sed 's/.*/[curl] &/'
- echo "--- npm whoami ---"
USER=$(npm whoami) || { echo "::error::npm whoami failed — NPM_TOKEN auth invalid"; exit 1; }
echo "npm authed as: $USER"