From 7bbea2b847c8c6e0275418c8c665df45a801dfa9 Mon Sep 17 00:00:00 2001 From: Michael Turner Date: Wed, 29 Jul 2026 12:40:15 -0500 Subject: [PATCH] pass package directories to npm publish as explicit ./ paths A bare "dist-npm/" argument matches npm's GitHub owner/repo shorthand, so the v0.2.1 publish tried to fetch github.com/dist-npm/darwin-arm64 over git and failed with exit 128 before publishing anything. Prefixing ./ makes the spec unambiguously a local directory. Latent since the workflow was introduced; this was its first real execution. --- .github/workflows/npm-publish.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 81e61ad..6286640 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -125,10 +125,13 @@ jobs: fi npm publish "$1" --access public } + # The ./ prefix is load-bearing: a bare "dist-npm/" matches + # npm's GitHub owner/repo shorthand and is fetched over git instead + # of being read as a directory. for pkg in dist-npm/*/; do [ "$pkg" = "dist-npm/main/" ] && continue - publish "${pkg%/}" + publish "./${pkg%/}" done - publish dist-npm/main + publish ./dist-npm/main env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}