[BUG] Publishing Github release doesn't work in v0.5.2
Environment
changelogen: 0.5.2 node: 18.14.1 browser: Arc v0.95.1 (37921)
Reproduction
Run: changelogen --release --push
package.json
{
"changelog": {
"repo": {
"provider": "github"
}
}
}
Describe the bug
The auto publish of the release with Github not works anymore with v0.5.2
A new window of the Browser is open, stay open and the release is not published.
Additional context
The urls generated for commits and compare version looks like:
- https://undefined/undefined/compare/v0.0.8...v0.0.9
I think the bug is due to this error
Check it here: https://github.com/zadigetvoltaire/nuxt-gtm/blob/main/CHANGELOG.md (v0.0.9)
Logs
> changelogen --release --push
ℹ Generating changelog for v0.0.8...main 15:27:31
ℹ Bumping version from 0.0.8 to 0.0.9 (minor) 15:27:31
ℹ Updating /.../CHANGELOG.md 15:27:31
ℹ Followup in the browser to manually create the release.
This seems (always was) a bug when only setting provider without github URL. Can you try removing repo configuration and instead set repository field in your package.json
I already set the repository url:
{
"repository": {
"type": "git",
"url": "https://github.com/zadigetvoltaire/nuxt-gtm.git"
},
}
I downgraded the version to 0.5.1 and it's working well.
If I delete this configuration, the release synchronization with Github will not be done automatically when I run changelogen --release --push ?
{
"changelog": {
"repo": {
"provider": "github"
}
}
}