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 <noreply@anthropic.com>
This commit is contained in:
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -107,7 +107,7 @@ jobs:
|
|||||||
needs: validate-version
|
needs: validate-version
|
||||||
if: inputs.action == 'create'
|
if: inputs.action == 'create'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 5
|
timeout-minutes: 10
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
@@ -118,6 +118,10 @@ jobs:
|
|||||||
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
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
|
- name: Check branch doesn't already exist
|
||||||
env:
|
env:
|
||||||
@@ -358,6 +362,9 @@ jobs:
|
|||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
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
|
- name: Bump to pre-release version
|
||||||
env:
|
env:
|
||||||
PRE_VERSION: ${{ steps.prerelease.outputs.pre_version }}
|
PRE_VERSION: ${{ steps.prerelease.outputs.pre_version }}
|
||||||
@@ -523,6 +530,9 @@ jobs:
|
|||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
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
|
- name: Set final version
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ inputs.version }}
|
VERSION: ${{ inputs.version }}
|
||||||
|
|||||||
Reference in New Issue
Block a user