Skip to content

Commit

Permalink
Extract version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Derpius committed Dec 2, 2023
1 parent 4945d41 commit 176cc45
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/lest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
version: latest
args: --check ./packages/lest

- name: Extract package version
id: version
run: |
version = cat package.json | jq -r '.version'
echo "version=${version}" >> "$GITHUB_OUTPUT"
- uses: mindsers/changelog-reader-action@v2
id: changelog
with:
Expand All @@ -37,8 +43,7 @@ jobs:
run: |
echo ${{ steps.changelog.outputs.version }}
echo ${{ steps.changelog.outputs.changes }}
echo ${{ steps.changelog.outputs.status }}
echo ${{ steps.changelog.outputs.date }}
echo ${{ steps.version.outputs.version }}
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 176cc45

Please sign in to comment.