Comments (7)
My configuration of this plugin is as follows:
['@semantic-release/git', {
assets: ['pom.xml']
}],
(I'm releasing a maven project.)
My semantic-release
dependencies are
"@semantic-release/exec": "3.3.0",
"@semantic-release/git": "7.0.7",
"semantic-release": "15.12.5"
from git.
semantic-release first attempt to the git push --dry-run
without using any token you might have configured, and if that fails tried again with the token.
This is what happened here. The failure message you see is due to the first attempt without the token and continued because the second attempt worked.
I don't know why it failed later though as you didn't provide the full logs.
from git.
Ok, this makes sense. My build failed later, because I tried to do git push
with the @semantic-release/exec
plugin.
I'm using CircleCI, and I've just applied a "user SSH key" to my repo, and I no longer get the error I showed in the description. I presume that also means that my manual push will work too, but I don't have a release to make right now. I'll try it next time.
If you happen know the command line pattern for pushing with a specified token, could you paste it? ... I know, you use node libraries in the tool, so no problem if you don't know it off-hand. I'm sure this is the right path.
from git.
The best is to not use @sematnic-release/exec
to make that push and to use semantic-release/git
which is meant for that.
I'm going to close this issue ass it seems everything works ass expected.
from git.
@pvdlg I understand and agree with your suggestion, and I would if it worked that way.
I'm releasing a maven project and the common paradigm is:
- Increment the version and commit
pom.xml
.- This represents going from
x.y.z-SNAPSHOT
to${nextRelease.version}
. - This is a perfect "prepare" phase and fits well into
@semantic-release/git
. - This is also the commit that gets tagged by the
semantic-release
core library.
- This represents going from
- Build and deploy the Java artifacts.
- This is a perfect "publish" phase. Still looking good.
- Increment the version and commit
pom.xml
.- This represents going from
${nextRelease.version}
back to a snapshot version (some increment of that "next" version, patch increment for me). - There is nothing I have found in
semantic-release
that fits this phase, so I'm using@semantic-release/exec
and doing it during the "success" phase.
- This represents going from
Even the maven-semantic-release
plugin linked from the main docs does this extra stuff. In his case, it's attached to the "publish" phase, but 6-half-dozen.
https://github.com/conveyal/maven-semantic-release/blob/dev/lib/publish.js
If at least the @semantic-release/git
plugin executed the git push
during the "publish" phase rather than "prepare", I could work with that and wouldn't have to write my own git push
command, but as-is, it's just too soon.
from git.
Kinda strange to execute a git push
during "prepare" IMO, when I really think about it.
from git.
I guess there's this... #117
😦
from git.
Related Issues (20)
- Does semantic release support SSH git access (our IT has disabled HTTPS git access) HOT 1
- branch variable does not match documentation
- GPG Signatures Configuration HOT 8
- change the default user for publishing the tags HOT 1
- Pushing to another repository than the current?
- Semantic release tool is creating "git notes" is there documentation on why is that, and a way to disable this? HOT 2
- SeeManGITticks
- update documentation to more clearly discourage use of this plugin HOT 3
- Semantic Release Not Handling Package.json Or Files One Level Up Correctly HOT 1
- ES Module? HOT 2
- Update GPG documentation HOT 3
- Suggestion - Documentation & new option around commit hook HOT 1
- Unable to push assets to a gitlab protected branch HOT 1
- Add flags to git commit command HOT 2
- failed: git ls-files -m -o maxBuffer exceeded
- Discrepancy between actual committed files and logged committed files HOT 3
- Update docs for fine-grained GitHub tokens HOT 9
- README file wrong link HOT 2
- Semantic release updates a file correctly, but doesn't include it in the release HOT 5
- Add TypeScript declarations for plugin options HOT 1
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 git.