Comments (7)
The tag must be present on the remote in order to do create a release, but you're using --no-git
(which also skips git push
), so I guess that might be the culprit here.
from release-it.
Thank you for the quick answer!
I use release-it
to create the tag and set the version locally, which should then trigger the CI (which uses release-it again and yes it is weird :D )
So the tag is already created.
Why is git push
necessary though?
from release-it.
The tag must be present on the origin (gitlab) to create a release there.
You could try something like this (not tested): --no-git.comit --no-git.tag
from release-it.
Thank you for your help!
The flags do not change the output.
For the CI now: I checked out the master
branch in pre-script
and logged git tag -l
.
The tag is set. I am going to tinker more with it. If I find the solution, I will post it here :)
from release-it.
Don't forget to remove --no-git
if you try my suggestion btw. You can see the resulting config in debug mode
from release-it.
Thank you :) I already tried that, with the same result.
As the error said something about the version, I tried removing the version argument directly after release-it
.
It still wont create a release because of the error You are not allowed to upload code
, even when I provide an elevated token.
It will create correctly versioned packages fine though.
NODE_DEBUG=release-it:* pnpm release-it --npm.skipChecks --VV --npm.allowSameVersion --npm.ignoreVersion --npm.skipChecks=true --gitlab.releaseName="@company/[email protected]" --no-increment --no-git.commit --gitlab.release --gitlab.releaseNotes='echo "Release version $CI_COMMIT_TAG."' --no-git.tag --gitlab.assets="./output/*.tar.gz"
I assume this has something do to with the git clone master
. I will continue my research
And thank you again for being so responsive
from release-it.
I solved it by using the Gitlab Release CLI
for the releases and release-it
for the package.
It works, and I can still use release-it
for the version bumping and tagging, which is nice
from release-it.
Related Issues (20)
- Bug - Issue with github comment on resolved items HOT 10
- [ERROR] GitLab CI error on NPM notice HOT 2
- Cannot understand how release verison is calculated HOT 2
- Hook for after changelog is written to CHANGELOG.md? HOT 2
- Bug: Error when rolling back git tag release suppresses original error
- beta and alpha releases do not work HOT 7
- When publishing an npm package, when the publishPath option is set, isCollaborator should detect package.json under publishPath instead of the current directory. HOT 2
- Wrong documentation related to running a custom Git Push command HOT 4
- How can I change method of releasing (from "Release 0.0.1" to "v0.0.1") ? HOT 3
- How can I change parametrs from "Release 0.0.0" to "v0.0.0" after writing release-it, and publishing into repository ? HOT 7
- Return different message when requireCommitsFail is false HOT 1
- Commits to one dir generate release of another. HOT 2
- Programatic Usage: Release-Version Premature Exit HOT 1
- Can't quite get auto-changelog right in github release notes. githubRelease runs before git commit/tag HOT 8
- Can't upload github release assets without rewriting release's changelog HOT 2
- Error 405 (Method Not Allowed) when creating Gitlab release (Gitlab self-hosted) HOT 2
- Is it possible to ignore `git.requireBranch` when releasing a pre-release only? HOT 2
- Run the script without prompts (accept all defaults) HOT 2
- Node 22 engine HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from release-it.