Skip to content

Commit

Permalink
Read tag version from package.json (#115)
Browse files Browse the repository at this point in the history
* Read tag version from package.json

* npm version 1.3.2

---------

Co-authored-by: jeff-horton-ho-sas <jeff-horton-ho-sas@users.noreply.github.com>
  • Loading branch information
jeff-horton-ho-sas and jeff-horton-ho-sas authored Dec 30, 2024
1 parent f9877bd commit 21202e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
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 }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ukhomeoffice/react-components",
"version": "1.3.1",
"version": "1.3.2",
"description": "React components for Home Office layouts and elements",
"main": "dist/ho-react-components.js",
"module": "dist/ho-react-components.module.js",
Expand Down

0 comments on commit 21202e2

Please sign in to comment.