jscutlery / semver

Nx plugin to automate semantic versioning and CHANGELOG generation.
MIT License
729 stars 85 forks source link

PostTarget attribute does not work #853

Open diliptekwani opened 2 months ago

diliptekwani commented 2 months ago

Hello Team,

We are facing an issue from this Monday where we are now unable to push our release on GitHub using postTarget attribute of version.

We are first using @jscutlery/semver:version executor to generate version and tag for release, which is working correctly, then after this we are using postTarget to run @jscutlery/semver:github executor to publish release on GitHub but this failing constantly.

The error that we are getting is listed below: image

Also our configuration is this one "version": { "executor": "@jscutlery/semver:version", "options": { "preset": "conventionalcommits", "changelogHeader": "Changelog", "postTargets": ["{projectName}:github"], "baseBranch": "main", "remote": "origin", "push": true, "dryRun": false, "tagPrefix": "{projectName}@v-", "trackDeps": true, "preid": "main", "commitMessageFormat": "chore({projectName}): release version {version} [skip ci]" } }, "github": { "executor": "@jscutlery/semver:github", "options": { "tag": "${tag}", "notes": "${notes}", "generateNotes": true, "target": "main", "prerelease": false, "draft": false, "title": "Release", "repo": "https://github.com/neurologik-io/ctx02.git" } }

Can anyone help us out in knowing where we have problem. Please note, same configuration was working till last Friday, from Monday it had stopped working.

edbzn commented 2 weeks ago

You can simplify the postTargets attribute like so:

"postTargets": ["github"], // this will take the contextual project

@diliptekwani This should resolve your issue, let me know.