Skip to content

Commit 329764f

Browse files
committed
chore: update versioning in github deploy workflows
1 parent 01c60f3 commit 329764f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy_alpha.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ jobs:
7272
run: |
7373
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
7474
75-
LATEST_VERSION=$(npm show @IQSS/dataverse-client-javascript versions --registry=https://npm.pkg.github.com/ --json | jq -r '.[]' | grep "^2.0.0-alpha." | sort -V | tail -n 1)
75+
LATEST_VERSION=$(npm show @IQSS/dataverse-client-javascript versions --registry=https://npm.pkg.github.com/ --json | jq -r '.[]' | grep "^1.0.0-alpha." | sort -V | tail -n 1)
7676
7777
if [ -z "$LATEST_VERSION" ]; then
7878
NEW_INCREMENTAL_NUMBER=1
7979
else
80-
CURRENT_INCREMENTAL_NUMBER=$(echo $LATEST_VERSION | sed 's/2.0.0-alpha.//')
80+
CURRENT_INCREMENTAL_NUMBER=$(echo $LATEST_VERSION | sed 's/1.0.0-alpha.//')
8181
NEW_INCREMENTAL_NUMBER=$((CURRENT_INCREMENTAL_NUMBER + 1))
8282
fi
8383
84-
NEW_VERSION="2.0.0-alpha.${NEW_INCREMENTAL_NUMBER}"
84+
NEW_VERSION="1.0.0-alpha.${NEW_INCREMENTAL_NUMBER}"
8585
8686
echo "Latest version: $LATEST_VERSION"
8787
echo "New version: $NEW_VERSION"

0 commit comments

Comments
 (0)