Comments (7)
semantic-release uses Git tags to determine the commits added since the last release. If a release has been published before setting up semantic-release you must make sure the most recent commit included in the last published release is in the release branches history and is tagged with the version released, formatted according to the tag format configured (defaults to vx.y.z).
from semantic-release-action.
Unless I'm mistaken, the SR action doesn't seem to be looking at the git tag
even after having it pushed to master
and it even ignores more recent tags.
And it's not like I suddenly switched to using a semantic-release with semantic versions when that has been set since the start; I guess, switching from a TravisCI with SR to a GH Action approach with no version-changing commits caused the problem.
But at the same time, I've yet to find a successful way to fix that.
from semantic-release-action.
Very strangely, I checked your action log. It says "Found git tag v1.4.1 associated with version 1.4.1 on branch master". But your latest tag is v1.4.2 and the version on npm is 1.4.3.
from semantic-release-action.
The latest NPM version (1.4.3) reflects the one in the package.json (which normally should be updated by SR when needed), the v1.4.3
tag is on the master
branch so SR should be able to find this.
It's weird!
from semantic-release-action.
This problem seems to have gone away, I don't know SR CI managed to release a new (minor) version to GH and NPM without updating the package.json
file? I never thought this was possible.
from semantic-release-action.
I think I know where the problem is. You need to add the package.json
file to the @semantic-release/git
plugin. semantic-release
automatically updates the package.json
file before releasing it to npm, but does not commit this change to your branch.
from semantic-release-action.
Hmm, that could explain why although the latest GH release does contain the package.json which is out-of-sync.
I've noticed that according to https://github.com/semantic-release/git#examples, the @semantic-release/npm
should be before the git
as it's apparently where the package.json
is updated.
from semantic-release-action.
Related Issues (20)
- `extends` parameter should allow file paths as well HOT 1
- Allow tag format parameter HOT 3
- Does not support semantic-release version 20 HOT 3
- Release action fails with non-specific error HOT 2
- Error: Error: Command failed: npm install HOT 10
- Is now mandatory NPM_TOKEN to run semantic-release? If yes is possible to run it without publish on NPMJS website?
- Add action typing
- Get version from dry-run mode. HOT 1
- BUG: DRY_RUN still creates release... HOT 1
- Incompatibility with semantic-release >v20 HOT 13
- ESM Error on Semantic Release Version 19.0.5 HOT 2
- `CI = false` & `dryrun = true` does not result in prelease build HOT 2
- override plugin version HOT 2
- Incompatibility with v22 of semantic-release HOT 4
- workflow_run causes semantic-release-action to reference wrong branch HOT 1
- `perf` prefix triggered a patch release. HOT 2
- [semantic-release] › ✖ EGITNOPERMISSION Cannot push to the Git repository
- Add repository_url input
- An error occurred while running semantic-release: Error: Cannot find module 'xxxxx' with 4.1.0 HOT 3
- ESM fail 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 semantic-release-action.