Semantic Release exits early without error at the start of step "analyzeCommits" #193
Unanswered
damienbutt
asked this question in
Q&A
Replies: 1 comment
-
I forked the project and found that it worked straight away when using the forked version in my workflow. I was a little confused at first but eventually, it dawned on me that by forking the project and pointing my workflow to the forked version, on the new branch I created, it was no longer using Using the latest commit works fine. - name: Release
id: release
if: github.ref == 'refs/heads/master'
# v4 doesn't seem to be working, so using a specific commit for now
uses: cycjimmy/semantic-release-action@6d88447fcd3237e1d617f4f663e5ad79a6bf45b1
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/exec
@semantic-release/git
conventional-changelog-conventionalcommits
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I've put this as a question here in discussion as I'm not sure exactly where the problem lies.
I've been using Semantic Release with GH Actions for a while on projects without issue, however, I have been simply running the
semantic-release
command, utilizing the semantic-release package installed within the project.I've been trying to use this action but not having success. The action runs semantic-release but the process just exits when it starts to analyze the commits. The step in the job exits with success still but semantic-release does not run all the way through.
Running
semantic-release --dry-run
locally on my machine works fine. And running thesemantic-release
command in GH Actions instead of the action also works fine.The repository is a simple test one just for playing with this action.
Repo: semantic-release-action-test
I do use Conventional Commits. My
.releaserc.json
specifies this. I did initially get an error from the action in the logs that it could not find the packageconventional-changelog-conventionalcommits
, so I did have to add this to theextra_plugins
input on the action. I did also have to install this package forsemantic-release
to run properly on my local machine. On most of my projects, I use@commitlint/cli
and@commitlint/config-conventional
which seems to include the above package already, so not had this error until now when not usingcommitlint
.I'm not sure if the problem is with the action, the semantic-release package, or the configuration. But as I said, running the
semantic-release
command directly works as expected.It seems to exit somewhere around this point:
https://github.com/semantic-release/semantic-release/lib/plugins/normalize.js
semantic-release/lib/plugins/normalize.js, line 35
This is just a snippet of that file.
In the actions logs I see the
Start step
log but not theCompleted step
one. But I also don't see any errors.Workflow File
Action Logs
Beta Was this translation helpful? Give feedback.
All reactions