Skip to content

Commit

Permalink
Add postpublish script to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
martdo02 committed Jan 24, 2024
1 parent a1b5e60 commit 5dea918
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"codecov": "nyc --reporter=lcov --reporter=text cucumber-js test",
"test": "lerna run test"
},
"postpublish" : "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",
"workspaces": [
"packages/api",
"packages/aws",
Expand Down

0 comments on commit 5dea918

Please sign in to comment.