Skip to content

Update the changelog in the preversion hook, avoiding an extra commit - #613

Merged
papandreou merged 1 commit into
masterfrom
feature/includeChangelogInTaggedVersion
Mar 31, 2019
Merged

Update the changelog in the preversion hook, avoiding an extra commit#613
papandreou merged 1 commit into
masterfrom
feature/includeChangelogInTaggedVersion

Conversation

@papandreou

Copy link
Copy Markdown
Member

Uses offline-github-changelog's new --next feature and @gustavnikolaj's ${npm_package_version} trick 😎

@sunesimonsen sunesimonsen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This to a really nice improvement.

@papandreou
papandreou merged commit f80a56a into master Mar 31, 2019
@papandreou
papandreou deleted the feature/includeChangelogInTaggedVersion branch March 31, 2019 21:01
@alexjeffburke

Copy link
Copy Markdown
Member

Love this!

Comment thread package.json
"generate-site": "generate-site --require ./bootstrap-unexpected-markdown.js",
"update-examples": "generate-site --require ./bootstrap-unexpected-markdown.js --update-examples",
"preversion": "test -n \"${IS_MAKE_RELEASE}\" || (echo Please run make release instead && exit 1)"
"preversion": "(test -n \"${IS_MAKE_RELEASE}\" || (echo Please run make release instead && exit 1)) && offline-github-changelog --next=${npm_package_version} > CHANGELOG.md && git add CHANGELOG.md"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks. I guess we should switch to version, then?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it seems to fit this use case 🙂

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in d21792d, thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants