Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Merge pull request #34 from UKHomeOfficeForms/npm-patch2
Browse files Browse the repository at this point in the history
[RELEASE]: Update to 3.0.0
  • Loading branch information
Alex-Swann authored Jun 29, 2021
2 parents 084ab3e + feff29c commit b6a7b22
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/auto-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,18 @@ jobs:
git config --local user.email "$(git log --format='%ae' HEAD^!)"
git config --local user.name "$(git log --format='%an' HEAD^!)"
npm version patch
release-tags:
needs: test
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/heads/master') && startsWith(github.event.head_commit.message, '[RELEASE]')"
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: |
git config --local user.email "$(git log --format='%ae' HEAD^!)"
git config --local user.name "$(git log --format='%an' HEAD^!)"
PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hof-build",
"version": "2.0.22",
"version": "3.0.0",
"description": "Performs build workflow for hof apps in prod and development",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit b6a7b22

Please sign in to comment.