Skip to content

Commit

Permalink
chore(ci): read contents of package.json to verify version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieSlome committed May 13, 2024
1 parent 50e69bc commit b28cc6e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,15 @@ jobs:
publish: false
- name: Get the short tag
id: get_tag_name
run: |
- run: |
short_tag=$(echo ${{ steps.release-drafter.outputs.tag_name }} | cut -d. -f1)
echo "SHORT_TAG=$short_tag" >> $GITHUB_OUTPUT
- run: |
echo 'PACKAGE_JSON<<EOF' >> $GITHUB_ENV
cat ./package.json >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- run: |
echo '${{ fromJson(env.PACKAGE_JSON).version }}'
# create_npm_release:
# needs: create_github_release
# runs-on: ubuntu-latest
Expand Down

0 comments on commit b28cc6e

Please sign in to comment.