mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Set release version on PR build
This commit is contained in:
parent
20e9826ef0
commit
3f60ea15f7
2 changed files with 30 additions and 13 deletions
9
.github/workflows/create-artifact.yml
vendored
9
.github/workflows/create-artifact.yml
vendored
|
|
@ -3,6 +3,11 @@ name: Create binaries
|
|||
on:
|
||||
pull_request:
|
||||
workflow_call:
|
||||
inputs:
|
||||
version:
|
||||
description: 'Version to set in package.json'
|
||||
required: false
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
create-binaries:
|
||||
|
|
@ -59,6 +64,10 @@ jobs:
|
|||
npm i -g @aikidosec/safe-chain
|
||||
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
|
||||
run: npm ci --ignore-scripts
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue