Questions tagged [semantic-release]
semantic-release automates package release workflow.
111
questions
1
vote
1
answer
11
views
Semantic release - include in CHANGELOG the commit subject, body and footer
I am trying to configure semantic release to include the subject, body and footer of the commit messages in CHANGELOG.md file, not just the subject of commit message, but no success. In my changelog I ...
0
votes
0
answers
27
views
semantic-release does not detect old tags/releases performed before semrel integration
We were using GitLab release job to create releases whenever a tag is manually created, and we have already few tags/releases created that way, now we are moving to semantic-release to create releases ...
0
votes
1
answer
46
views
Why does semantic-release backmerge fail with HEAD -> develop (non-fast-forward)?
I'm using semantic-release with saitho/semantic-release-backmerge.
The branch structure looks like this: release <- beta <- alpha The branches alpha, beta are pre-release branches and release is ...
0
votes
0
answers
73
views
Multiple pre-releases from any branch that follows a particular naming convention using semantic-release?
We’ve been using a branching strategy (previously along with release-it) like this:
main
Our production branch, of course.
release/DEV-123-branch-name
With our epics in Jira we’ve been creating an ...
0
votes
0
answers
39
views
Why does a "/" in commit message break semantic-release?
I noticed that when using semantic-release/commit-analyzer plugin in gitlab ci, if there is a "/" in the commit message this breaks semantic release resulting in the following "error&...
0
votes
1
answer
143
views
semantic-release in a GitLab pipeline with multiple users
I'm running a semantic-release job in a GitLab pipeline, it works great but only for my user (I configured it). No one else seems able to trigger a release, even if I merge their code. No errors, ...
0
votes
1
answer
313
views
Semantic-Release fails on GitHub authentication: Failed step "fail" of plugin "@semantic-release/github"
I am trying to integrate semantic-release into my Node CI/CD workflow. I have tried following the documentation and tutorials but I am clearly missing something. The testing step passes, but the ...
0
votes
0
answers
72
views
semantic-release-monorepo ignores pkgRoot
I created a minimal reproduction which is a monorepo contains only one workspace in `./package' dir
both root and package (the workspace) have exactly the same release.config.js file except that ...
0
votes
1
answer
229
views
using semantic-release to update version strings in release and via commit for non-npm project
I am developing a handful of WordPress projects on Gitlab and I would like to use semantic-release to automatically manage releases. To that end I'm trying to accomplish a few additional things:
...
0
votes
1
answer
585
views
How to publish a release with semantic-release on GitHub?
I am trying to publish my releases with semantic-release. Everything has worked well but the tool so far only generated tags rather than an actual GitHub Release.
My .releaserc
{
"branches"...
0
votes
1
answer
485
views
semantic-release does not update package.json of my Angular library
I have this Angular library uploaded to a package registry that I created on Gitlab. I've already been able to upload my library successfully to this registry using the CI. I now want to implement ...
0
votes
1
answer
863
views
Semantic release not accepting GITLAB_TOKEN on gitlab private repository
Here is the error log message:
[3:40:55 PM] [semantic-release] › ✖ The command "git push --dry-run
--no-verify https://gitlab-ci-token:[secure]@[repository-url].git
HEAD:main" failed with ...
4
votes
0
answers
395
views
semantic-release breaking-change using ! (exclamation mark)
Can Major version changes (aka Breaking Changes) be handled in semantic-release using the exclamation mark?
git commit -m 'feat!: this is breaking, but is not recognized by semantic-release'
...
1
vote
0
answers
153
views
semantic-release with jenkins don't recognize 'origin/master' as valid branch
I'm trying to create package with semantic-release and jenkins, but i'm getting de following error
2022-01-11T15:53:59.089Z semantic-release:get-tags found tags for branch master: [ { gitTag: 'v0.1.1-...
-1
votes
1
answer
166
views
SHA of Tag Created by Semantic-Release
We're updating our release workflow to use semantic-release, and I need to be able to grab the SHA of the latest tag, create a new branch with it, build our assets, commit them to that new branch.
The ...
0
votes
1
answer
612
views
Is it possible to automate .Net assembly versioning using semantic-release?
I have a C# solution containing a single project and multiple libraries using .Net 6. I'm using conventional commits (commitlint with husky) and want to use semantic-release to deploy the latest build ...
0
votes
1
answer
88
views
Sematic release failing in gitlab ci for large number of commits
i am using semantic release with gitlab. I have added a job in ci for running semantic release which seems to run normally for normal number of commits but when i ran it on a branch with around 1500 ...
0
votes
0
answers
50
views
GitHub CircleCI checks incomplete after semantic-release creates a [skip ci] commit
I have a GitHub project which requires some CircleCI jobs to be checked before allowing a merge to main. I have a "release" job in my dev pipeline, which uses semantic-release to increase ...
2
votes
0
answers
39
views
There is a problem when creating a release with Git(Hub) branches
We're serving a Node.js application and operating branch policy on GitHub such as:
main: Production environment release base
develop: Development environment (beta) release base
Basically, we're ...
0
votes
0
answers
273
views
semantic release - TypeError: Cannot read property 'name' of undefined
I am trying to publish a package from my app.
I get this error at the publish step:
[2:28:46 PM] [semantic-release] › ℹ Running semantic-release version 18.0.0
[2:28:46 PM] [semantic-release] › ✔ ...
1
vote
1
answer
1k
views
Semantic-Release doesn't create release with BREAKING CHANGE
When I create a commit like this, git commit -m'BREAKING CHANGE: foo bar' and push up semantic-release tells me,
[@semantic-release/commit-analyzer] › ℹ Analyzing commit: BREAKING CHANGE: Changes ...
1
vote
0
answers
44
views
How to merge tags to a branch while merging a branch A to branch B?
I have two branches, branch-A(Which has tags 1.0.0, 1.1.0, 1.1.1, 1.1.2), branch-B (created on top of branch-A). We are doing the development in both the branches parallelly.
After branch-B was ...
0
votes
0
answers
250
views
configure semantic-release to publish pre-release via CLI
My goal is configure semantic-release to create tag from the protected branches like this:
npx semantic-release --plugins @semantic-release/commit-analyzer --branches {'name': 'release/super-feature', ...
3
votes
1
answer
338
views
How to publish a whole directory using Github Actions with the semantic-release Github plugin?
I want to publish a whole directory (the build directory) on a Github release using semantic-release but unfortunately it releases each build file as a single asset.
For reproduction:
I'm using the ...
2
votes
1
answer
399
views
How to add the build files as an asset to a release in Github?
I have a project based on Node/npm and use commitlint, husky and semantic-release. Whenever I push to the protected main branch I want to create a new release.
In Github I added the following workflow
...
0
votes
0
answers
102
views
Is it possible to give custom type in the semantic commit analyzer configuration?
I want to analyze some custom-type commits also. Something like below:
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"...
0
votes
1
answer
413
views
Is it possible to exclude some commits from semantic release release notes?
I have a case where I need to include the commit in the semantic-release/commit-analyzer but not in semantic-release/release-notes-generator. Is it possible to do this in Github actions semantic ...
1
vote
1
answer
274
views
How to unpublish a wrong version release by semantic-release and re-release with a correct version?
I'm using the semantic-release package which runs on my CI to release my library onto npm through my Github repo.
Recently, I have a breaking change that I have forgotten to add the breaking change ...
0
votes
1
answer
269
views
How can I use environmental variables in the .releaserc.json?
I want to do something like this,
["@semantic-release/exec", {
"prepareCmd": "echo hello ${HOME};"
}],
And then run this CI job with an environmental variable? Is ...
0
votes
0
answers
361
views
Is it possible to get the version released by semantic release in github actions?
I am using github actions for my project and to release I am using semantic release, Once semantic release releases the version Is it possible to forward that version to next steps?
release:
...
1
vote
0
answers
188
views
getting error: [semantic-release] › ✖ EPLUGINSCONF The `plugins` configuration is invalid
I am very new to semantic release so not sure I can exec multiple @semantic-release/exec at a time in a single .releaserc file.
Please let me know if this is feasible, if yes then what is my mistake.
...
0
votes
1
answer
816
views
I use semantic-release in GITLAB ,but the error is Invalid GitHub token.(Variable already been set)
I already set the varaible,but it seems not work.
sementic log shows its was using @semantic-release/github,but actually my repo is in the gitlab, is that reason?By the way i have already install the ...
0
votes
0
answers
100
views
How to add custom release notes in semantic release notes generator?
Currently I am using semantic-release/release-notes-generator for generating the release notes. So Is it possible to add some custom notes if the commit message is something?
Like I have below release ...
1
vote
1
answer
249
views
Isolated "Semantic-Release" docker container works, but takes 40 minutes in GitLab CI
I have an isolated Gitlab server and Gitlab runner that lack internet connectivity. I am trying to run "semantic-versioning" (a node.js app) in a Docker container so that it can handle ...
2
votes
1
answer
470
views
How can I get branch name in semantic-release?
I am trying to create semantic releases with a tag format which includes the branch name. The .releaserc file looks something like this:
{
"name": "Inder Semantic Release",
...
4
votes
2
answers
2k
views
Gitlab semantic release not using private registry
I'm trying to use semantic-release to publish to a scoped private registry on gitlab but I keep getting error because it's trying to auth against the public registry instead the private one.
Here are ...
1
vote
1
answer
1k
views
semantic-release: fatal: tag 'vX.Y.Z' already exists
Trying to set up semantic-release/gitlab, I'm getting this in my GitLab logs,
Error: Command failed with exit code 128: git tag v1.0.0 2c30602010d7d9f26cc0880b988ff9de6405daa5
fatal: tag 'v1.0.0' ...
4
votes
1
answer
615
views
semantic-release not creating new release and changelog not pushed to GitLab
I have the following problem: As soon, as my pipeline starts and a release should be published by semantic-release, nothing happens. Only the correct label is created.
My .releaserc looks like this:
{
...
4
votes
1
answer
430
views
GitHub - semantic-release release notes using all commits in PR
I would like to be able to have semantic-release gather all commit messages being merged from a separate branch into one release notes entry. Our workflow is as below:
all development commits are ...
0
votes
1
answer
510
views
Repo not found using semantic-release-monorepo in GitHub Actions workflow
I am creating a GitHub Actions workflow to build and publish npm packages to GitHub Packages. The repo is a monorepo with several packages, so I am using the semantic-release-monorepo tool. However, ...
6
votes
3
answers
2k
views
How to setup semantic-release without the need for npm?
I have a C# project and would like to add semantic versioning to it. So whenever I push to the main branch I want to create a new release and autogenerate a new version number based on the commit ...
3
votes
1
answer
2k
views
Missing plugins when running semantic-release in Gitlab CI
I would love to use semantic-release to manage our semantic versioning. For that I tried to integrate it into our Gitlab CI. I followed some examples and provided the necessary environment variables ...
0
votes
1
answer
753
views
semantic_release failing suddenly on CircleCI - remote: Invalid username or password
When running a check and release on CircleCI, the process started to fail on the release stage using semantic_release. It had been working fine for months.
The error message was:
[3:24:45 AM] [...
2
votes
1
answer
336
views
Is it possible to only release prereleases with semantic release?
I want to use semantic-release to only publish prereleases.
I have this config in my package.json:
"release": {
"branches": [
{
"name": "main&...
0
votes
1
answer
127
views
semantic-release: how to avoid race conditions when assigning version numbers?
I am looking at implementing semantic-release in my GitLabCI build process, for a C++ application. However I'm concerned about potential race conditions.
Firstly, if two builds are running ...
1
vote
1
answer
479
views
Starting from existing project with semantic-release to publish package NOT starting at 1.0.0
I have a private npm package that is currently published to npm. The maintainer before me did not consider automated versioning, and the version is 1.0.58.
I have installed semantic-release and a ...
1
vote
0
answers
51
views
semantic release random branch as a release branch
how should semantic release be configured to produce a unique semantic versioning for each branch (set all branches as release branch).
that is, assume a random branch name - how do semantic release ...
1
vote
1
answer
128
views
How can I make semantic-release abort and fail if it would release a new major version?
I would like to add a check to semantic-release to only allow it to publish minor and patch releases. If it detects the need to perform a new major release, I want the process to be aborted and fail (...
1
vote
0
answers
878
views
Enforce semantic-release to deploy with next version
I receive an error from sematic-release triggered by CI on test branch
Command failed with exit code 128: git tag vX.XX.XX <commit id>
fatal: tag 'vX.XX.XX' already exists
The issue started ...
0
votes
1
answer
621
views
Setup @semantic-release for considering 'refactor' commits in the CHANGELOG
Using @semantic-release I'd like to consider refactor changes for both, triggering a new release and write down in the CHANGELOG.md file.
So far, I've included refactor commits at "@semantic-...