Skip to content

Commit

Permalink
fix: dependencies for RELEASE_NOTES target
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSchafer committed Jun 17, 2024
1 parent 7b7b036 commit 29638f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ jobs:
command: make binary-releases/release.json
- run:
name: Making release notes
command: make -d binary-releases/RELEASE_NOTES.md binary-releases/fips/RELEASE_NOTES.md
command: make binary-releases/RELEASE_NOTES.md binary-releases/fips/RELEASE_NOTES.md
- run:
name: Validating artifacts
command: ./release-scripts/validate-checksums.sh
Expand Down
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,8 @@ $(BINARY_OUTPUT_FOLDER)/sha256sums.txt.asc:
$(BINARY_OUTPUT_FOLDER)/release.json:
./release-scripts/release.json.sh

# --commit-path is forwarded to `git log <path>`.
# We're using this to remove CLIv2 changes in v1's changelogs.
# :(exclude) syntax: https://git-scm.com/docs/gitglossary.html#Documentation/gitglossary.txt-exclude
# Release notes uses version from package.json so we need to prepack beforehand.
$(BINARY_OUTPUT_FOLDER)/RELEASE_NOTES.md: $(BINARY_OUTPUT_FOLDER) $(BINARY_OUTPUT_FOLDER)/version
# This target must not have any dependency to support checked in Release Notes that don't get overridden.
$(BINARY_OUTPUT_FOLDER)/RELEASE_NOTES.md:
npx conventional-changelog-cli -l -r 1 -n ./release-scripts/conventional-changelog-cli-config.js > $(BINARY_OUTPUT_FOLDER)/RELEASE_NOTES.md

$(BINARY_OUTPUT_FOLDER)/fips/RELEASE_NOTES.md: $(BINARY_OUTPUT_FOLDER)/RELEASE_NOTES.md $(BINARY_OUTPUT_FOLDER)/fips
Expand Down
2 changes: 1 addition & 1 deletion release-scripts/prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if [ -f binary-releases/RELEASE_NOTES.md ]; then
fi

# Generate the release notes baseline from the commits
make binary-releases/RELEASE_NOTES.md format
make binary-releases binary-releases/version binary-releases/RELEASE_NOTES.md format

# if the release notes are generated locally, the version contains something like X.Y.Z-dev.hash
# the replacement below ensures that the version in the RELEASE_NOTES.md is X.Y.Z
Expand Down

0 comments on commit 29638f3

Please sign in to comment.