Questions tagged [semantic-release]

semantic-release automates package release workflow.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

A project that has to be release in multiple configurations

I'm a DevOps engineer for multiple teams with different projects. One of the projects is one that deploys a single project to some of our teams. But every team needs a different configurations and ...
Elad Press's user avatar
0 votes
0 answers
34 views

semantic-release no longer updating git notes

Up until around early October 2023, all of our GitLab pipelines were working normally. We've been using semantic release for over a year. But about a month ago, the git notes aren't updating. This ...
Wayne Kaskie's user avatar
  • 3,287
0 votes
0 answers
27 views

Automatic Versioning Based on Branch Names Using Semantic-Release Package

Hello Stack Overflow community, I am currently exploring the capabilities of the semantic-release package and wondering if it is possible to update versioning based on branch names instead of commit ...
Nathan's user avatar
  • 23
1 vote
0 answers
115 views

Gitlab CI/CD Variables for semantic-release and nexus

I have a vite project and the repository is hosted in gitlab. Now I'd like to use semantic-release (v20.0.0) in order to handle the versioning and the release to the nexus-npm server. The .yml file ...
marcel's user avatar
  • 3,241
0 votes
0 answers
39 views

Using the new package version in my build with GitLab CI/CD flow with semantic-release

I want to implement automatic versioning with semantic-release using GitLab CI/CD pipelines. I was previously triggering the automatic versioning (and changelog generation) manually and locally before ...
TehOne's user avatar
  • 2,589
0 votes
0 answers
27 views

Semantic release workflow for bugfixes in master

we recently transitioned to Semantic Release and it's great - till we must make some fast hotfix. Basically we have 3 stages: development branches the "dev" branch where the development ...
Michal Vašut's user avatar
3 votes
1 answer
300 views

Workflow using semantic release fails to generate version even if it runs with no errors

I have a very simple GitHub Actions workflow which up until 2 weeks ago was working fine but it suddenly stopped generating changelog and new version tags. Commits are of the type fix: some message ...
mixkat's user avatar
  • 3,735
2 votes
1 answer
122 views

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 ...
Akarsh KR's user avatar
0 votes
0 answers
65 views

Tagging latest with semantic release

So in our setup, we're using Github and Github Actions. We release to npm using semantic-release. We have a CI run that pushes to production when we release on either our main branch or our bugfix ...
Arak Tai'Roth's user avatar
0 votes
0 answers
59 views

Semantic release changelog generation doesn't follow headerPattern from config

In the project I follow this pattern for commit messages: feat (XX-0000): commit message recommended pattern is: feat(XX-0000): commit message So without space after feat. The problem is I'm not able ...
programmer's user avatar
0 votes
0 answers
47 views

Trigger semantic release based on pull request title

I use semantic-release package to trigger semantic release via GitHub Actions. Out of the box it uses @semantic-release/commit-analyzer plugin which analyzes the message of each commit in a pull ...
SinxroFozotron's user avatar
1 vote
1 answer
317 views

Publishing to github packages using semantic release from an Nx Repository

I'm new to GitHub Packages (or publishing NPM packages in general) and am trying to publish packages to my private repository using semantic release following this excellent blog post. However, I'm ...
thijsfranck's user avatar
0 votes
0 answers
75 views

semantic-release detected a breaking change commit in a merge from master, causing a new major alpha version

I think maybe we are using semantic release wrong at my company, but no one really knows the right way to use it. We have an alpha branch that creates releases with alpha tags at the end of the ...
danielhep's user avatar
  • 356
0 votes
1 answer
560 views

How to trigger semantic-release by a GitHub pull request?

We are using the semantic-release tool for releasing. I want to create a GitHub action that runs on every PR and leaves a comment on the PR with the expected release version before merging it. I am ...
kbenda's user avatar
  • 430
0 votes
0 answers
335 views

Getting tag version using semantic releases

I am using semantic release for versioning in my repo. In my Gitlab when i merge my branch with develop my tag increases according to the commit and it works fine. I now want to get the current ...
bruvio's user avatar
  • 893
0 votes
0 answers
207 views

Semantic -release not generate commit message with version number

I am trying to use https://github.com/semantic-release/release-notes-generator For example if my present version is v1.0.0 when I added a fix and commit message as below. fix: I made a fix. I can see ...
Nidhin Rajeevan's user avatar
1 vote
0 answers
174 views

Generating Release Notes using AWS CodeCommit and Amplify

I'm currently using AWS CodeCommit for git repo version control and Amplify to build/serve my files. I need to create release notes, as an exported file, when a merge is done against my main branch ...
dcp3450's user avatar
  • 11k
1 vote
1 answer
303 views

Publish a package to Github using Semantic-release

Update2: I spent way to many hours trying to make this work, it has been tiring and frustrating, I am now doing everything manually. I do the release manually and I publish the package locally with my ...
Kaiser Soze's user avatar
  • 1,400
2 votes
1 answer
361 views

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 ...
mattiatantardini's user avatar
0 votes
2 answers
368 views

Semantic release always uses semantic release bot user instead of own for git commits

I'm using semantic release and because I want to use signed commits I want to use my own git user. I have a publishCmd configured (@semantic-release/exec) which is a shell script and executes some ...
mstruebing's user avatar
  • 1,714
4 votes
2 answers
293 views

Is there a way to create a Gitlab job CI rule that does not run the job when only if one file was updated?

I am trying to write a gitlab ci job rule that does not run when only CHANGELOG.md is committed into the default branch. However, if CHANGELOG.md is updated along with other files in the commit, then ...
J W's user avatar
  • 107
0 votes
0 answers
138 views

Semantic Release not recognising pkgRoot variable

I am using Semantic Release with a private gitlab CI/CD, and getting the error when running the pipeline: npm ERR! enoent ENOENT: no such file or directory, open '/builds/squint-nyc/bootstrap-in-a-...
Paulo Renan's user avatar
-1 votes
2 answers
128 views

How to change a breaking change commit on remote to a fix or feature using semantic-release without altering git history?

I am using semantic-release for automated versioning and releasing of my Git repository. However, I have made a mistake and committed a breaking change on the remote repository, and I want to change ...
user1512895's user avatar
0 votes
0 answers
39 views

Access repository name in semantic-release sharable config

I am using the shareable config feature of semantic-release to create a re-usable configuration which will use the exec plugin to upload a file to S3. I would like the file path to include the name of ...
Daniel Scott's user avatar
  • 7,488
0 votes
0 answers
63 views

semantic-release with github-action: is it possible to track and release inner directory in a repo?

javascript-project1 |- .github/workflows/publish.yml |- folder1 |- folder2 |- package.json |- ... |- javascript-project2 |- package.json |- ... I want to only release inner javascript-...
small wombat's user avatar
-1 votes
1 answer
136 views

How to wait for fetch Promise result before module.exports?

I'm writing a configuration for the semantic-release tool using the release.config.js file, which allows generating the configuration dynamically. Now, I need to call several APIs during the loading ...
user2950818's user avatar
2 votes
1 answer
916 views

semantic-release doesn't bump package.json version

I have configured semantic-release in package.json like that: "release": { "branches": [ "master" ], "plugins": [ ["@semantic-...
Tomek Buszewski's user avatar
-1 votes
1 answer
442 views

How to tag docker image with release version number from a previous GitHub action job

I have the following action that first runs a semantic release and then builds a docker image. At the moment the image is tagged with master but I want it to be tagged with the release i.e. v1.0.8 I ...
PrestonDocks's user avatar
  • 4,991
-1 votes
1 answer
719 views

Failed step "verifyConditions" of plugin "@semantic-release/gitlab"

I have a problem. We created gitlab token in our CI/CD enter image description here but I have an error when I push npx semantic-release code: 'ENOGLTOKEN', details: 'A [GitLab personal ...
Kirill Gnatko's user avatar
0 votes
0 answers
87 views

Semantic release - maintenance release with suffix

I would like to achieve this using semantic release. master: 1.1.0 (release1) ---- 1.1.1 (release2)-------- \ \ release1: \ ---- feat(Something): ---- 1.1.0-mr.0 --- feat(...
Gabriel Poama-Neagra's user avatar
0 votes
1 answer
149 views

Failed step "analyzeCommits" of plugin "[Function: nx-semantic-release] when running GitHub action

I have an issue with the GitHub action workflow that I have created for the purpose of automatically releasing versions of my NX monorepo. During the process, I encountered an issue when the workflow ...
Philip Mutua's user avatar
  • 6,216
-1 votes
1 answer
1k views

Why do I always fail when I run jobs on github actions? even though I have installed the latest version of Node on my machine

I have installed the latest version of NodeJs (v18.14.0), but it still fails to do jobs, what should I do? this is the code from my workflow and the screenshot of the error. # This workflow will do a ...
Sandi-s's user avatar
  • 13
0 votes
0 answers
453 views

Merge a branch that has "chore(release): 2.1.0 [skip ci]" as last commit message doesn't trigger a release

I'm trying out "semantic-release" scenarios, and if I create a next branch and publish a breaking change on that branch, the branch triggers a version 2.0.0, which is good. Now if I do a ...
Ruby's user avatar
  • 2,309
0 votes
0 answers
46 views

Daily release using semantic release

We have semantic-release set up in our repo at work. Tech leads asking me to: Let people merge to the main branch and it shouldn't trigger the release. It requires to automatically creating releases ...
Negin Basiri's user avatar
  • 1,335
0 votes
0 answers
191 views

Semantic release 401 error when merging branch into main branch

When I merge my release candidate branch into my main brach i receive a 401 error. I have a release candidate "rc" branch that is at 1.06. I am trying to merge that branch into my main ...
young sir x's user avatar
1 vote
1 answer
1k views

Semantic-release not creating new version for package

I have an NPM package I am trying to set up semantic release for so it will automatically deploy with a version bump. I recently migrated from an old repo / npm package to a new one and since doing so ...
Stretch0's user avatar
  • 8,570
1 vote
0 answers
375 views

Get npmAuthToken instead of npmAuthIdent from Azure DevOps to use with semantic-release and yarnv3

we probably have a really specific case. We are using Private NPM registry on Azure DevOps Yarn v1 Semantic-Release Monorepo (containing multiple packages. I think if it would only be one package, it ...
Musterknabe's user avatar
  • 5,813
2 votes
0 answers
186 views

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 ...
AwesomeTown's user avatar
  • 2,800
8 votes
1 answer
1k views

Github: Pushing to protected branches with fine-grained token

I'm using semantic release in a Github repository to create automatic releases on push. The release needs to commit package.json and CHANGELOG.md to my protected branch. I used to provide a personal ...
Th3S4mur41's user avatar
  • 2,000
0 votes
1 answer
445 views

bump2version fails to find the current release tag

I've been upgrading our workflow to add an automatic version bump. The problem is that I accidentally added these steps with a typo in the .bumpversion.cfg file and from that moment, the workflow is ...
Killerz0ne's user avatar
1 vote
1 answer
711 views

Releasing and Publishing via GH actions

I am trying to automate publishing the SDKs for Python, Java, GO, and Node. My main goal is to make the CI run whenever a new PR is created against main branch that will: bump the version in all ...
Killerz0ne's user avatar
0 votes
0 answers
199 views

Gitlab CI semantic release local branch beta behind the remote one

I am using semantic release for handling versioning in my repo. But recently i am facing issues when running the job. I have a beta branch where beta versions are released. But when the changes are ...
Origin's user avatar
  • 1,277
2 votes
2 answers
358 views

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 ...
Lys's user avatar
  • 591
4 votes
1 answer
1k views

Semantic release not publishing correct folder

For the past few days, I'm trying to publish my package to github by using semantic-release. Unfortunately, I can't publish the correct folder as source code (zip) file in my npm package hosted on ...
Giga Meta's user avatar
  • 299
0 votes
0 answers
1k views

Semantic release using prerelease on beta branch

When using semantic-release and doing beta pre-releases. https://semantic-release.gitbook.io/semantic-release/usage/workflow-configuration#pre-release-branches They say that if the last version on ...
cbdeveloper's user avatar
  • 28.8k
1 vote
1 answer
968 views

Force version bump (patch) if no commit keywords found

I have teams I work with that love semantic-release, but often developers forget to put the commit message keywords in (e.g. fix, feat, perf). I understand this is something we need to hammer home or ...
drewster's user avatar
1 vote
1 answer
487 views

How to prevent triggering Gitlab pipeline on new tag creation

I have a repository that I am using as a template for semantic release: release.yml workflow: rules: - if: $CI_COMMIT_TAG when: never - if: $CI_COMMIT_BRANCH == "test" ...
Kingindanord's user avatar
  • 1,816
1 vote
0 answers
310 views

semantic-release: trigger chore(release) only on finished pipeline

I'm (mis)using semantic-release when building a C++ application in a GitLab CI. My config is quite minimal .releaserc.json { "branches": ["main", "develop"], "...
Roland Schützenhofer's user avatar
0 votes
1 answer
126 views

Publish Storybook components to NPM using Semantic Release and Github Actions

Article for reference I can set up Github Actions but get stuck on GitHub Release; it says Run npx semantic-release [semantic-release]: node version >=16 || ^14.17 is required. Found v12.22.12. ...
Toan Lam's user avatar
  • 109
1 vote
0 answers
1k views

How to automatically bump NPM package version with semantic-release?

I have an NPM package that up until now, I have been manually bumping the version in package.json and then my GitHub actions CI publishes. I have now added semantic release with the following config ...
Stretch0's user avatar
  • 8,570