Questions tagged [semantic-release]

semantic-release automates package release workflow.

semantic-release automates package release workflow.

Links

161 questions
2
votes
0 answers

Semantic-release: How to downgrade the major version that is already published to artifactory?

Say, the previous release was done by squashing the commits. And including BREAKING CHANGE text at the end of the squashed commit message which released version 2.0.0. thereafter, a new patch release was done which published version 2.0.1. After…
2
votes
2 answers

Is it possible to generate artifacts without publishing with Semantic-release?

I'm currently using semantic-release for versioning of my react library. https://github.com/semantic-release/semantic-release Question: Is it possible to generate the artifacts without publishing it? For example, in my use case I would like to…
darewreck
  • 2,576
  • 5
  • 42
  • 67
2
votes
0 answers

How to use semantic-release to publish an Angular library in a Bitbucket repository?

I'm working on an Angular Library and I'm trying to make the process of releasing as much automatic as I can. I've been researching different tools and I've seen several that are very helpful: Commitizen for commit message format Husky to enforce…
Alavaros
  • 1,665
  • 7
  • 32
  • 52
2
votes
3 answers

Packaged published to npm is almost empty: Just publish README, LICENSE and package.json

I have a react component project created with nwb. I'm using Travis and semantic-release to make the releases. But now, when I publish a new version, the package published from Travis is almost empty, and only have three files: README, LICENSE and…
A. Iglesias
  • 2,625
  • 2
  • 8
  • 23
1
vote
1 answer

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 running into issues authenticating with GitHub…
thijsfranck
  • 778
  • 1
  • 10
  • 24
1
vote
0 answers

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 terminal, as it works fine with no problem. I…
1
vote
0 answers

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 would be ok) Everything works fine and as…
Musterknabe
  • 5,763
  • 14
  • 61
  • 117
1
vote
1 answer

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 files. publish the new release to the related public…
Killerz0ne
  • 254
  • 1
  • 2
  • 12
1
vote
1 answer

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 implement a pre-commit hook to require…
drewster
  • 61
  • 6
1
vote
1 answer

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" when: always - if: $CI_COMMIT_BRANCH == "main" …
Kingindanord
  • 1,754
  • 2
  • 19
  • 48
1
vote
0 answers

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"], "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/gitlab", …
1
vote
0 answers

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 but it keeps trying to update the package version…
Stretch0
  • 8,362
  • 13
  • 71
  • 133
1
vote
1 answer

EINVALIDGHTOKEN Invalid GitHub token

config.yml version: 2.1 orbs: node: circleci/node@1.1.6 jobs: test-build-and-publish: executor: name: node/default steps: - checkout - node/with-cache: steps: - run: name: Install…
1
vote
0 answers

An error occurred while running semantic-release: Error: Command failed with exit code 128: git tag --merged main

My default branch is main and while merging it to main branch I am getting this error. I have added env for NPM_TOKEN and GH_TOKEN in vercel environment variable. vercel.json { "$schema": "https://openapi.vercel.sh/vercel.json", "buildCommand":…
SURTI ABHI
  • 64
  • 1
  • 5
1
vote
2 answers

Semantic Release publishing on package.json

I am currently try to auto publish my npm package to GitHub packages using semantic release with GitHub Actions. The package publishes successfully but when Installed, only the package.json file is found in the published package. I have a build…