Questions tagged [semantic-release]

semantic-release automates package release workflow.

semantic-release automates package release workflow.

Links

161 questions
2
votes
1 answer

Semantic-release is not getting installed and asking specific Node version which I can't update

The "semantic-release" package is preventing the installation of "node_modules" in my React Native project. Despite searching for a solution, I couldn't locate the package causing the issue. This might be due to compatibility conflicts or other…
2
votes
1 answer

Azure Devops pipeline does not trigger on tags when they are created by semantic release

I have two pipelines in an Azure Devops environment. The first pipeline runs on branch main and does semantic versioning of the code: if fix or feat commits are present, it pushes another commit by changing the version in the proper file and also…
mattiatantardini
  • 525
  • 1
  • 5
  • 23
2
votes
1 answer

semantic-release doesn't bump package.json version

I have configured semantic-release in package.json like that: "release": { "branches": [ "master" ], "plugins": [ ["@semantic-release/commit-analyzer", { "releaseRules": [ {"type": "feat", "release":…
Tomek Buszewski
  • 7,659
  • 14
  • 67
  • 112
2
votes
0 answers

Using semantic-release to publish to both github and npmjs

We are in the process of migrating from npmjs to GitHub Packages for our private npm packages. To try and smooth this process, I am trying to have our CI process publish packages to both registries while projects make the switch. We've been using…
AwesomeTown
  • 2,800
  • 2
  • 27
  • 41
2
votes
2 answers

Getting Error: Cannot find module '../lib/cli.js' when running @semantic-release/npm plugin

I have the following Github action step which by design should do semantic release and at the end update "version" field in package.json but failed with error below. I tried to use all the latest version but error remains, any…
Lys
  • 591
  • 2
  • 9
  • 19
2
votes
1 answer

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 still have only the short subject of commit…
2
votes
1 answer

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-0', version: '0.1.1-0', channels: [ null ] }…
2
votes
1 answer

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 automatic versioning for my GitLab repositories. I have to build…
ZZTest
  • 89
  • 7
2
votes
1 answer

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", "version": "2.1.0", "plugins": [ …
Inder
  • 3,711
  • 9
  • 27
  • 42
2
votes
1 answer

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", "prerelease": "alpha", "channel": "alpha" } ] } But if I…
Simon Zyx
  • 6,503
  • 1
  • 25
  • 37
2
votes
1 answer

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 fatal: tag 'vX.XX.XX' already exists The issue started when I pushed invalid code that wasn't released, so to…
eudaimonia
  • 1,406
  • 1
  • 15
  • 28
2
votes
1 answer

generating version tags using semantic-release without the v

How can I use git tags with the format major.minor.patch, without the "v" in the beginning (i.e. versions 1.0.1, 2.0.1)? I'm using Gitlab CI, but even using the Docker image locally I'm not able to pass the value to tag-format correctly. What I'm…
2
votes
0 answers

semantic-release publishing tags to wrong channel

I am using semantic-release for our .Net Core solution. Semantic-release is used as part of the CI pipeline on GitLab repository. This is my .releaserc.json { "plugins": [ "@semantic-release/commit-analyzer", …
2
votes
1 answer

AWS CodeArtifact public npm package version missing

I'm using AWS CodeArtifact for private npm registry. Project has tons of dependencies and all those are resolved correctly. We are publishing packages to our registry successfully and using them as dependencies in other projects, everything is…
2
votes
0 answers

Versionning a NodeJS project using GitLab CI not working in verify conditions section

Hello Everyone, I'm trying to implement the versionning of a NodeJS project using GitLab CI but i have a strange problem when running npx semantic-release, could someone help me to resolve this problem. Error message : [12:42:29 PM]…
1 2
3
10 11