Skip to content

Commit

Permalink
chore: fix correct changelog generation for dependencies (#1818)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs authored Aug 2, 2024
1 parent 815b9bf commit 5e06978
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 28 deletions.
1 change: 1 addition & 0 deletions .github/workflows/draft-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
id: finish-release
env:
HUSKY: 0
BASE_BRANCH: ${{ steps.create-release.outputs.branch_name }}
run: |
echo "Current version: $CURRENT_VERSION_VALUE"
echo "New version: $NEW_VERSION_VALUE"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"build:v1.1": "nx run-many -t build --projects=rudder-sdk-js",
"build:sanity": "rm -rf packages/sanity-suite/dist && nx run-many --targets=build:all --projects=@rudderstack/analytics-js-sanity-suite",
"bump-version:monorepo": "npm version minor --git-tag-version false",
"release": "nx affected --base=origin/main --target=version --parallel=1 --skipCommitTypes=docs,ci,chore,test",
"release": "nx affected --base=origin/main --target=version --parallel=1 --skipCommitTypes=docs,ci,chore,test --baseBranch=$BASE_BRANCH",
"release:nx": "nx release --skip-publish --verbose --dry-run",
"release:github": "nx affected --target=github --parallel=1 --skipCommitTypes=docs,ci,chore,test",
"deploy:npm": "nx affected --target=deploy --parallel=1 --skipCommitTypes=docs,ci,chore,test"
Expand Down
4 changes: 1 addition & 3 deletions packages/analytics-js-common/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"baseBranch": "main",
"preset": "conventionalcommits",
"tagPrefix": "{projectName}@",
"trackDeps": true,
"push": true
"trackDeps": true
}
},
"github": {
Expand Down
4 changes: 1 addition & 3 deletions packages/analytics-js-cookies/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"baseBranch": "main",
"preset": "conventionalcommits",
"tagPrefix": "{projectName}@",
"trackDeps": true,
"push": true
"trackDeps": true
}
},
"github": {
Expand Down
4 changes: 1 addition & 3 deletions packages/analytics-js-integrations/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"baseBranch": "main",
"preset": "conventionalcommits",
"tagPrefix": "{projectName}@",
"trackDeps": true,
"push": true
"trackDeps": true
}
},
"github": {
Expand Down
4 changes: 1 addition & 3 deletions packages/analytics-js-plugins/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"baseBranch": "main",
"preset": "conventionalcommits",
"tagPrefix": "{projectName}@",
"trackDeps": true,
"push": true
"trackDeps": true
}
},
"github": {
Expand Down
4 changes: 1 addition & 3 deletions packages/analytics-js-service-worker/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"baseBranch": "main",
"preset": "conventionalcommits",
"tagPrefix": "{projectName}@",
"trackDeps": true,
"push": true
"trackDeps": true
}
},
"github": {
Expand Down
4 changes: 1 addition & 3 deletions packages/analytics-js/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"baseBranch": "main",
"preset": "conventionalcommits",
"tagPrefix": "{projectName}@",
"trackDeps": true,
"push": true
"trackDeps": true
}
},
"github": {
Expand Down
4 changes: 1 addition & 3 deletions packages/analytics-v1.1/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"baseBranch": "main",
"preset": "conventionalcommits",
"tagPrefix": "{projectName}@",
"trackDeps": true,
"push": true
"trackDeps": true
}
},
"github": {
Expand Down
4 changes: 1 addition & 3 deletions packages/loading-scripts/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"baseBranch": "main",
"preset": "conventionalcommits",
"tagPrefix": "{projectName}@",
"trackDeps": true,
"push": true
"trackDeps": true
}
},
"github": {
Expand Down
4 changes: 1 addition & 3 deletions packages/sanity-suite/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"baseBranch": "main",
"preset": "conventionalcommits",
"tagPrefix": "{projectName}@",
"trackDeps": true,
"push": true
"trackDeps": true
}
}
}
Expand Down
13 changes: 13 additions & 0 deletions patches/@jscutlery+semver+5.2.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/@jscutlery/semver/src/executors/version/utils/try-bump.js b/node_modules/@jscutlery/semver/src/executors/version/utils/try-bump.js
index 13c94d0..f616b64 100644
--- a/node_modules/@jscutlery/semver/src/executors/version/utils/try-bump.js
+++ b/node_modules/@jscutlery/semver/src/executors/version/utils/try-bump.js
@@ -167,7 +167,7 @@ function _getDependencyVersions({ commitParserOptions, preset, dependencyRoots,
return (0, rxjs_1.forkJoin)(dependencyRoots.map(({ path: projectRoot, name: dependencyName }) => {
/* Get dependency version changes since last project version */
const tagPrefix = (0, tag_1.formatTagPrefix)({
- versionTagPrefix,
+ versionTagPrefix: `{projectName}@`,
projectName: dependencyName,
syncVersions,
});

0 comments on commit 5e06978

Please sign in to comment.