Open
Description
I think it's a better to make these example uniform, it's really confusing.
semantic-release/gitlab
(this project)
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/gitlab", {
"gitlabUrl": "https://custom.gitlab.com",
"assets": [
{"path": "dist/asset.min.css", "label": "CSS distribution"},
{"path": "dist/asset.min.js", "label": "JS distribution"}
]
}],
]
}
- It's not clear from the above how to publish an angular project, which builds into
dist
hand has many "assets".npm pack
just needs to be told to thedist/
directory that contains thepackage.json
, for examplenpm pack dist/my-workspace/my-lib
. How do we package an angular project with Semantic-Release gitlab like above? - You post a
gitlabUrl
in there. It's not clear why I would ever want that. That can be supported by thepackage.json
. Why would I want it here. For simplicity I would remove it.
GitLab wiki,
The following is from the GitLab wiki,
{
"branches": ["master"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/gitlab",
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": ["package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
- Note this has
branches
That seems to be required. If it is this project should probably also contain it.