From d588471389c136cadbeab104a2df1cd822eeb360 Mon Sep 17 00:00:00 2001 From: Tom Boucher Date: Sat, 20 Jun 2026 15:39:21 -0400 Subject: [PATCH] fix(#1501): build:lib before npm version in release workflow so capability-ledger.cjs exists for registry hook (#1502) Co-authored-by: Claude Sonnet 4.6 --- .github/workflows/release.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bf3af0b70..927ab0c58 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,7 +107,7 @@ jobs: needs: validate-version if: inputs.action == 'create' runs-on: ubuntu-latest - timeout-minutes: 5 + timeout-minutes: 10 permissions: contents: write steps: @@ -118,6 +118,10 @@ jobs: - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 with: node-version: ${{ env.NODE_VERSION }} + cache: 'npm' + + - name: Install dependencies and build + run: npm ci --silent && npm run build:lib - name: Check branch doesn't already exist env: @@ -358,6 +362,9 @@ jobs: git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + - name: Install dependencies and build + run: npm ci --silent && npm run build:lib + - name: Bump to pre-release version env: PRE_VERSION: ${{ steps.prerelease.outputs.pre_version }} @@ -523,6 +530,9 @@ jobs: git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + - name: Install dependencies and build + run: npm ci --silent && npm run build:lib + - name: Set final version env: VERSION: ${{ inputs.version }}