Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
devdanco committed Nov 20, 2023
1 parent 2d7308b commit df82ce5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/pre-release-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,16 @@ jobs:
echo "NPM package version of mangata type definitions is $version"
echo "MANGATA_TYPE_DEFINITIONS=$version" >> $GITHUB_ENV
- name: Install always latest type definitions
if: ${{ github.event.inputs.branch == '' }}
run: npm i @mangata-finance/type-definitions@${{ env.MANGATA_TYPE_DEFINITIONS }}

- name: Extract the tag version of type definitions based on branch
if: ${{ github.event.inputs.branch != '' }}
env:
INPUTS_BRANCH: ${{ github.event.inputs.branch }}
run: |
version=$(npm show @mangata-finance/type-definitions@${INPUTS_BRANCH//\//-} version)
version=$(npm show @mangata-finance/type-definitions@${INPUTS_BRANCH//\//-} version || npm show @mangata-finance/type-definitions version)
echo "NPM package version of mangata type definitions is $version"
echo "MANGATA_TYPE_DEFINITIONS=$version" >> $GITHUB_ENV
- name: Install always latest type definitions
if: ${{ github.event.inputs.branch != '' }}
run: npm i @mangata-finance/type-definitions@${{ env.MANGATA_TYPE_DEFINITIONS }}

- run: npx nx run @mangata-finance/types:generate-metadata
Expand Down

0 comments on commit df82ce5

Please sign in to comment.