Skip to content

Commit

Permalink
Update changelog process
Browse files Browse the repository at this point in the history
  • Loading branch information
anselmbradford committed Nov 6, 2024
1 parent dc28348 commit ae8b035
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@
"release-it": {
"git": {
"requireBranch": "main",
"changelog": "yarn exec git-cliff -o - --include-path 'packages/cfpb-design-system/**/*' --latest --bump",
"changelog": "./scripts/changelog.sh stdout",
"commitsPath": "packages/cfpb-design-system",
"requireCommits": true
},
"hooks": {
"after:bump": "yarn exec git-cliff -o 'packages/cfpb-design-system/CHANGELOG.md' --include-path 'packages/cfpb-design-system/**/*' --bump"
"after:bump": "./scripts/changelog.sh"
},
"npm": {
"publish": false,
Expand Down
9 changes: 9 additions & 0 deletions scripts/changelog.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

NODE_VERSION=$(node -p -e "require('./packages/cfpb-design-system/package.json').version")

if [ "$1" = "stdout" ]; then
yarn exec git-cliff -o - --include-path 'packages/cfpb-design-system/**/*' --unreleased --tag $NODE_VERSION
else
yarn exec git-cliff -o 'packages/cfpb-design-system/CHANGELOG.md' --include-path 'packages/cfpb-design-system/**/*' --tag $NODE_VERSION
fi

0 comments on commit ae8b035

Please sign in to comment.