Skip to content

Commit

Permalink
Print versions in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Peterclark1996 committed Jun 9, 2024
1 parent 535d1fa commit be350dd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ jobs:
id: get-non-published-version
run: echo "version-non-published=$(jq -r '.version' packages/s2ts/package.json)" >> $GITHUB_OUTPUT

- name: Print versions
id: print-versions
run: |
echo "Published version: ${{ steps.get-published-version.outputs.version-published }}"
echo "Non published version: ${{ steps.get-non-published-version.outputs.version-non-published }}"
- name: Publish to npm
if: steps.get-non-published-version.outputs.version-non-published != steps.get-published-version.outputs.version-published
run: npm run publish-npm
Expand Down Expand Up @@ -68,6 +74,12 @@ jobs:
id: get-non-published-version
run: echo "version-non-published=$(jq -r '.version' packages/s2ts/package.json)" >> $GITHUB_OUTPUT

- name: Print versions
id: print-versions
run: |
echo "Published version: ${{ steps.get-published-version.outputs.version-published }}"
echo "Non published version: ${{ steps.get-non-published-version.outputs.version-non-published }}"
- name: Publish to npm
if: steps.get-non-published-version.outputs.version-non-published != steps.get-published-version.outputs.version-published
run: npm run publish-npm
Expand Down

0 comments on commit be350dd

Please sign in to comment.