Skip to content

Commit

Permalink
trying out updating auto-changelog to run on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
tnrich committed Jan 3, 2024
1 parent 04c5445 commit 4b8537f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ yarn lint-staged --relative

yarn nx affected --target=test --base=master --head=HEAD

yarn auto-changelog -p && git add CHANGELOG.md
# yarn auto-changelog -p && git add CHANGELOG.md #tnw - trying to run this only on version bumps
1 change: 1 addition & 0 deletions tools/scripts/publish.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function invariant(condition, message) {
// Default "tag" to "next" so we won't publish the "latest" tag by accident.
let [, , name, version, tag = "latest"] = process.argv;

execSync(`yarn auto-changelog -p`);
// Get all internal dependencies to write them to the package.json in the dist folder
execSync(`yarn nx graph --file=output.json`);
const r = readFileSync(`output.json`).toString();
Expand Down

0 comments on commit 4b8537f

Please sign in to comment.