Merge pull request #245 from AikidoSec/fix-release-build

Fix build: install packages before setting the version
This commit is contained in:
Sander Declerck 2025-12-15 16:52:36 +01:00 committed by GitHub
commit 51bcdaca47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@ on:
workflow_call: workflow_call:
inputs: inputs:
version: version:
description: 'Version to set in package.json' description: "Version to set in package.json"
required: false required: false
type: string type: string
@ -64,13 +64,13 @@ jobs:
npm i -g @aikidosec/safe-chain npm i -g @aikidosec/safe-chain
safe-chain setup-ci safe-chain setup-ci
- name: Set the version in safe-chain package
if: inputs.version != ''
run: npm --no-git-tag-version version ${{ inputs.version }} --workspace=packages/safe-chain
- name: Install dependencies - name: Install dependencies
run: npm ci --ignore-scripts run: npm ci --ignore-scripts
- name: Set the version in safe-chain package
if: inputs.version != ''
run: npm --no-git-tag-version version ${{ inputs.version }} --workspace=packages/safe-chain --ignore-scripts
- name: Create binary - name: Create binary
run: | run: |
node build.js ${{ matrix.target }} node build.js ${{ matrix.target }}