-
Notifications
You must be signed in to change notification settings - Fork 121
chore: enable automatic CHANGELOG generation via Changesets #945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -51,6 +51,8 @@ jobs: | |||||
| - name: Update package version and remove changesets | ||||||
| if: env.changesets_found == 'true' | ||||||
| run: pnpm exec changeset version | ||||||
| env: | ||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|
|
||||||
| - name: Publish to NPM | ||||||
| if: env.changesets_found == 'true' | ||||||
|
|
@@ -69,6 +71,6 @@ jobs: | |||||
| run: | | ||||||
| git config --global user.name 'github-actions[bot]' | ||||||
| git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||||||
| git add package.json .changeset | ||||||
| git add package.json .changeset CHANGELOG.md | ||||||
| git commit -m "Update package version & delete changesets" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: the commit message says "Update package version & delete changesets" but now it also commits CHANGELOG.md changes. might be worth updating to reflect that - something like "Update package version, changelog & delete changesets". not fussed either way though.
Suggested change
|
||||||
| git push | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| # Changelog | ||
| ### v3.0.6 (Unreleased) | ||
| ### v3.0.6 (August 25, 2025) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. praise: cheers for fixing the stale "(Unreleased)" label - v3.0.6 has been on npm since August. |
||
| - Add title attribute to iframes for improved accessibility ([#919](https://github.com/Shopify/buy-button-js/pull/919)) | ||
|
|
||
| ### v3.0.5 (July 2, 2025) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,6 +72,7 @@ | |
| "@babel/plugin-transform-template-literals": "7.4.4", | ||
| "@babel/plugin-transform-typeof-symbol": "7.2.0", | ||
| "@babel/preset-typescript": "^7.27.1", | ||
| "@changesets/changelog-github": "^0.6.0", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. non-blocking: |
||
| "@changesets/cli": "^2.28.1", | ||
| "@shopify/js-uploader": "https://github.com/Shopify/js-uploader.git", | ||
| "@types/jest": "^30.0.0", | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: good catch -
changeset versionwas already generating CHANGELOG.md updates, but they were never staged in the commit step. this was a silent bug.