Skip to content

Commit

Permalink
Fixed: test version naming
Browse files Browse the repository at this point in the history
  • Loading branch information
GPortas committed Sep 30, 2024
1 parent 292c2b4 commit 26f0957
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy_alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ jobs:
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
LATEST_VERSION=$(npm show @IQSS/dataverse-client-javascript versions --registry=https://npm.pkg.github.com/ --json | jq -r '.[]' | grep "^2.0.0-alphatest." | sort -V | tail -n 1)
LATEST_VERSION=$(npm show @IQSS/dataverse-client-javascript versions --registry=https://npm.pkg.github.com/ --json | jq -r '.[]' | grep "^2.0.0-test." | sort -V | tail -n 1)
if [ -z "$LATEST_VERSION" ]; then
NEW_INCREMENTAL_NUMBER=1
else
CURRENT_INCREMENTAL_NUMBER=$(echo $LATEST_VERSION | sed 's/2.0.0-alphatest.//')
CURRENT_INCREMENTAL_NUMBER=$(echo $LATEST_VERSION | sed 's/2.0.0-test.//')
NEW_INCREMENTAL_NUMBER=$((CURRENT_INCREMENTAL_NUMBER + 1))
fi
NEW_VERSION="2.0.0-alphatest.${NEW_INCREMENTAL_NUMBER}"
NEW_VERSION="2.0.0-test.${NEW_INCREMENTAL_NUMBER}"
echo "Latest version: $LATEST_VERSION"
echo "New version: $NEW_VERSION"
Expand Down

0 comments on commit 26f0957

Please sign in to comment.