Skip to content

Commit

Permalink
Add step to extract version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
davoxpa committed Dec 31, 2023
1 parent 96913ea commit 28b78de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- uses: actions/checkout@v2

- name: Extract version from package.json
id: package_version
run: |
VERSION=$(cat package.json | grep version | awk -F: '{ print $2 }' | sed 's/[",]//g' | xargs)
echo "Version: $VERSION"
Expand Down

0 comments on commit 28b78de

Please sign in to comment.