File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: 'deploy_alpha'
33on :
44 push :
55 branches :
6- - 196-github-action-fix
6+ - develop
77
88jobs :
99 test-unit :
@@ -72,25 +72,23 @@ 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-test ." | 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 "^2.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-test .//')
80+ CURRENT_INCREMENTAL_NUMBER=$(echo $LATEST_VERSION | sed 's/2.0.0-alpha .//')
8181 NEW_INCREMENTAL_NUMBER=$((CURRENT_INCREMENTAL_NUMBER + 1))
8282 fi
8383
84- NEW_VERSION="2.0.0-test .${NEW_INCREMENTAL_NUMBER}"
84+ NEW_VERSION="2.0.0-alpha .${NEW_INCREMENTAL_NUMBER}"
8585
8686 echo "Latest version: $LATEST_VERSION"
8787 echo "New version: $NEW_VERSION"
8888
8989 echo "Setting package version to: ${NEW_VERSION}"
9090 npm version "${NEW_VERSION}" --no-git-tag-version
9191
92- #
93-
9492 - name : Publish package
9593 run : |
9694 echo "$(jq '.publishConfig.registry = "https://npm.pkg.github.com"' package.json)" > package.json
You can’t perform that action at this time.
0 commit comments