-
Notifications
You must be signed in to change notification settings - Fork 81
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
Failing (?) feature "allow adding URLs to release assets" #393
Comments
Maybe related to #192 ? |
I'm having the same problem. Config on module.exports = {
branches: [
'master',
{
name: 'beta',
prerelease: true
}
],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'conventionalcommits'
}
],
'@semantic-release/release-notes-generator',
[
'@semantic-release/exec',
{
publishCmd: 'curl --header \"JOB-TOKEN: $CI_JOB_TOKEN\" --upload-file module.zip $PACKAGE_REGISTRY_URL/$VERSION/pt-BR.zip && curl --header \"JOB-TOKEN: $CI_JOB_TOKEN\" --upload-file core/module.json $PACKAGE_REGISTRY_URL/$VERSION/module.json'
}
],
[
'@semantic-release/gitlab',
{
failTitle: false,
assets: [
{
url: `${process.env.PACKAGE_REGISTRY_URL}/${process.env.VERSION}/module.zip`
},
{
url: `${process.env.PACKAGE_REGISTRY_URL}/${process.env.VERSION}/module.json`
}
]
}
],
[
'@semantic-release/git',
{
assets: [
'package.json',
'core/module.json'
],
message: 'chore(release): ${nextRelease.version}\n\n${nextRelease.notes}'
}
]
]
} GitLab CI Logs:
|
@awcjack Could you check this? |
Edited!: So I did some more research/debugging. The underlying problem is the following: If I only specify
the call to the releases api of gitlab will only contain So the solution is to always add a
I think the README.md should be improved to make it more clear. (: But also thanks for this superb project! (: |
@kaerbr is right, adding a |
Thanks for the investigation. 👍 |
Is it possible that this error currently also exist for |
Current behavior
As of version 9.3.0 its possible to add urls to assets for linking to docker registry or other artifact storages.
Unfortunately I cant get this feature to work for me.
The URL to be used is given in my
.releaserc.yml
., but the pipeline fails (see at the bottom of this issue).If I run the command manually (curl) (copied from the logs):
I get an error:
"error": "assets[links][0][name] is missing"
wich is understandable due to the fact thatassets:links:name
is required if aassets:links:url
is given (see here(docs))Expected behavior
Is there anything in my configuration not correct or is there a bug in this feature?
I tried adding the
name
variable in my.releaserc.yml
but it would not go into the request:Environment
node:lts-alpine
base imageThe text was updated successfully, but these errors were encountered: