Skip to content

Commit

Permalink
Read tag version from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-horton-ho-sas committed Dec 30, 2024
1 parent f9877bd commit e309a7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Extract npm Package Version
run: echo "NPM_VERSION=$(cat package.json | jq -r '.version')" >> ${GITHUB_ENV}
shell: bash

- name: Tag repository
uses: UKHomeOffice/semver-tag-action@v4
with:
tag: ${{ steps.calculate.outputs.version }}
tag: ${{ env.NEW_VERSION }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e309a7f

Please sign in to comment.