Skip to content

Commit 292c2b4

Browse files
committed
Fixed: deploy_alpha.yml Fetch latest alpha version step
1 parent 87e2ce4 commit 292c2b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/deploy_alpha.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,12 @@ jobs:
6767
run: npm run build
6868

6969
- name: Fetch latest alpha version
70+
env:
71+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7072
run: |
71-
LATEST_VERSION=$(npm show @IQSS/dataverse-client-javascript versions --json | jq -r '.[]' | grep "^2.0.0-alphatest." | sort -V | tail -n 1)
73+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
74+
75+
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)
7276
7377
if [ -z "$LATEST_VERSION" ]; then
7478
NEW_INCREMENTAL_NUMBER=1

0 commit comments

Comments
 (0)