Skip to content

Commit 77c7d5f

Browse files
authored
Merge pull request #2 from anyparser/chore/changelog
chore/changelog
2 parents 0225c21 + f34b947 commit 77c7d5f

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

changelogs/v1.0.1-changelog.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Changes
2+
3+
**User Agent**
4+
5+
- Added User-Agent header with version info
6+
7+
8+
## Breaking Changes
9+
10+
None.
11+
12+
## Migration Guide
13+
14+
No migration needed for this release.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@
8080
"test": "vitest run",
8181
"coverage": "vitest run --coverage",
8282
"check:state": "git diff --quiet && git diff --cached --quiet || { echo 'Git working directory is not clean. Please commit or stash changes before publishing.'; exit 1; }",
83-
"check:branch": "if [[ $(git symbolic-ref --short HEAD) != 'master' && ! $(git symbolic-ref --short HEAD) =~ ^release/ ]]; then echo 'You must be on the master branch or a release branch (release/...).'; exit 1; fi",
84-
"prepublishOnly": "npm run check:state && npm run check:branch && npm run build"
83+
"check:branch": "if [ $(git symbolic-ref --short HEAD) != 'master' ]; then echo 'You must be on the master branch to publish.'; exit 1; fi",
84+
"check:changelog": "VERSION=$(node -p \"require('./package.json').version\") && if [ ! -f \"changelogs/v${VERSION}-changelog.md\" ]; then echo \"No changelog file found for version ${VERSION}.\"; exit 1; fi",
85+
"prepublishOnly": "npm run check:state && npm run check:branch && npm run check:changelog && npm run build"
8586
},
8687
"engines": {
8788
"node": ">=20"

0 commit comments

Comments
 (0)