Skip to content

Commit

Permalink
Fix npm script
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed May 9, 2024
1 parent 8a23e09 commit 87bedc3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/scriptTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ jobs:
./jfrog.exe --version
if: contains( matrix.suite.os, 'windows')

# Prior to the release, we set the new version in the package.json files, introducing the pre-released version.
# This adjustment may result in an attempt to download a version that hasn't been published to releases.jfrog.io yet.
# To handle it, we fetch the most recent JFrog CLI release and store it in the LATEST_RELEASE step output.

- name: "Get latest release"
id: latest-release
run: |
Expand All @@ -112,14 +110,19 @@ jobs:

- name: Test install npm - v2
working-directory: build/npm/v2
# Prior to the release, we set the new version in the package.json files, introducing the pre-released version.
# This adjustment may result in an attempt to download a version that hasn't been published to releases.jfrog.io yet.
# To handle it, we fetch the most recent JFrog CLI release and store it in the latest_version param.
run: |
npm version ${{ steps.latest-release.outputs.LATEST_RELEASE }} --allow-same-version
latest_version=$(npm view jfrog-cli-v2 version)
npm version $latest_version --allow-same-version
npm install
./bin/jfrog${{ matrix.suite.osSuffix }} --version
- name: Test install npm - v2-jf
working-directory: build/npm/v2-jf
run: |
npm version ${{ steps.latest-release.outputs.LATEST_RELEASE }} --allow-same-version
latest_version=$(npm view jfrog-cli-v2-jf version)
npm version $latest_version --allow-same-version
npm install
./bin/jf${{ matrix.suite.osSuffix }} --version

0 comments on commit 87bedc3

Please sign in to comment.