Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostTarget attribute does not work #853

Open
diliptekwani opened this issue Aug 7, 2024 · 1 comment
Open

PostTarget attribute does not work #853

diliptekwani opened this issue Aug 7, 2024 · 1 comment

Comments

@diliptekwani
Copy link

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
Copy link
Member

edbzn commented Oct 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants