Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
devdanco authored Dec 1, 2023
1 parent d5b418d commit e5fd1cd
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/pre-release-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,26 +96,6 @@ jobs:

- run: npm ci

- name: Extract the latest version of type definitions
if: ${{ github.event.inputs.branch == '' }}
run: |
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: Extract the tag version of type definitions based on branch
if: ${{ github.event.inputs.branch != '' }}
env:
INPUTS_BRANCH: ${{ github.event.inputs.branch }}
run: |
sanitized_branch=$(echo "${INPUTS_BRANCH}" | sed -E 's@[/\.]@-@g')
version=$(npm show @mangata-finance/type-definitions@${sanitized_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 type definitions
run: npm i @mangata-finance/type-definitions@${{ env.MANGATA_TYPE_DEFINITIONS }}

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

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

0 comments on commit e5fd1cd

Please sign in to comment.