From 3019bd9e293fbbf5846c39d52855d06ea326b464 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 30 Oct 2026 07:05:05 +0000 Subject: [PATCH] publish: install before publishing so prepublishOnly's tsc exists The first @flashyfinancial publish (0.3.0) failed at the Publish step with `sh: 1: tsc: not found`: prepublishOnly runs build:types, tsc is a devDependency, and the publish job never ran npm ci. The token check and the version check had both passed, so nothing was published and the re-run on this commit publishes the same version. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01VgrPGGUFKMq9zXBHnfcTgs --- .github/workflows/publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e76d66d..0264b05 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,6 +33,9 @@ jobs: node-version: 20 registry-url: https://registry.npmjs.org + - name: Install (prepublishOnly builds the type declarations with tsc, a devDependency) + run: npm ci + - name: Verify the npm token can publish before doing anything else env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_FLASHYOS_CI || secrets.NPM_TOKEN }}