From 26dbd0d8ae57da21d04d65bc3a6c75d33184f052 Mon Sep 17 00:00:00 2001 From: Grischa Erbe Date: Wed, 29 Apr 2026 22:50:16 +0200 Subject: [PATCH] Build before publishing in the release workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The publish-npm job ran `npm ci && npm publish` with no build step. Combined with `dist/` being gitignored and no prepack/prepublishOnly hook in package.json, a release would publish a tarball whose `files` list ("dist", ...) points at a directory that doesn't exist — i.e. an empty package. Insert `npm run build` between install and publish. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/npm-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 663e89f..339dc79 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -28,6 +28,7 @@ jobs: node-version: 22 registry-url: https://registry.npmjs.org/ - run: npm ci + - run: npm run build - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}}