Skip to content

Commit

Permalink
ci: get the version of the package from the package.json file instead…
Browse files Browse the repository at this point in the history
… of … (#330)
  • Loading branch information
apolikamixitos authored Jan 30, 2025
1 parent cc6ef72 commit 94677f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Prepare cross-steps variables
run: |
export PACKAGE_NAME=$(jq -r '.name' 'package.json');
export PACKAGE_VERSION=v$(echo '${{ steps.publish-release.outputs.publishedPackages }}' | jq -r ".[] | select(.name == \"${PACKAGE_NAME}\") | .version")
export PACKAGE_VERSION=v$(jq -r '.version' 'package.json')
export BASE_ARTIFACTS_DIR="./artifacts"
export ARTIFACT_NAME="interchain-token-service-assets-${PACKAGE_VERSION}"
export BASE_ARTIFACTS_VERSIONED_DIR="$(dirname ${BASE_ARTIFACTS_DIR})/${ARTIFACT_NAME}" # Regardless of the dir type, relative or absolute
Expand Down

0 comments on commit 94677f1

Please sign in to comment.