Skip to content

Commit

Permalink
Fix NPM Available Version Check (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
kube authored Apr 4, 2020
1 parent baf98ac commit ddc02e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ jobs:
id: branch-version
run: echo "##[set-output name=value;]$(jq .version workspaces/${{ matrix.workspace }}/package.json)"

- name: Get version on NPM
- name: Check if version exists on NPM
id: npm-version
run: echo "##[set-output name=value;]$(npm view ${{ matrix.workspace }} version)"
run: echo "##[set-output name=value;]$(npm view ${{ matrix.workspace }}@${{ steps.branch-version.outputs.value }} version)"

- name: Version update detected
if: steps.npm-version.outputs.value != steps.branch-version.outputs.value
Expand Down

0 comments on commit ddc02e8

Please sign in to comment.