Skip to content

Commit de7bb4a

Browse files
authored
Merge pull request #945 from Shopify/enable-auto-changelog
chore: enable automatic CHANGELOG generation via Changesets
2 parents d83fdfa + 1c79bb9 commit de7bb4a

5 files changed

Lines changed: 72 additions & 3 deletions

File tree

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3-
"changelog": false,
3+
"changelog": ["@changesets/changelog-github", { "repo": "Shopify/buy-button-js" }],
44
"commit": false,
55
"fixed": [],
66
"linked": [],

.github/workflows/npm-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151
- name: Update package version and remove changesets
5252
if: env.changesets_found == 'true'
5353
run: pnpm exec changeset version
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5456

5557
- name: Publish to NPM
5658
if: env.changesets_found == 'true'
@@ -69,6 +71,6 @@ jobs:
6971
run: |
7072
git config --global user.name 'github-actions[bot]'
7173
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
72-
git add package.json .changeset
74+
git add package.json .changeset CHANGELOG.md
7375
git commit -m "Update package version & delete changesets"
7476
git push

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changelog
2-
### v3.0.6 (Unreleased)
2+
### v3.0.6 (August 25, 2025)
33
- Add title attribute to iframes for improved accessibility ([#919](https://github.com/Shopify/buy-button-js/pull/919))
44

55
### v3.0.5 (July 2, 2025)

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"@babel/plugin-transform-template-literals": "7.4.4",
7373
"@babel/plugin-transform-typeof-symbol": "7.2.0",
7474
"@babel/preset-typescript": "^7.27.1",
75+
"@changesets/changelog-github": "^0.6.0",
7576
"@changesets/cli": "^2.28.1",
7677
"@shopify/js-uploader": "https://github.com/Shopify/js-uploader.git",
7778
"@types/jest": "^30.0.0",

pnpm-lock.yaml

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)