Cannot find module (plugins) in a workflow release for a Golang project #3102
Answered
by
sheerlox
ootkin
asked this question in
Release workflow
-
Hi folks, We would like to use semantic-release to automate the release of a golang project. {
"branches": [
"master"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/github",
[
"semantic-release-helm",
{
"chartPath": "./Chart"
}
],
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/git",
{
"assets": [
"Chart/Chart.yaml"
]
}
],
[
"@semantic-release/exec",
{
"verifyReleaseCmd": "echo \"version=${nextRelease.version}\" >> $GITHUB_OUTPUT"
}
]
]
} In our workflow we have defined a step to install semantic-release with the required plugins like so: - name: Install and run semantic-release
id: semantic_release
run: |
npm i -g @semantic-release/git @semantic-release/changelog @semantic-release/exec semantic-release-helm
npx semantic-release@22
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} But I've got the following error:
I think that npx is trying to look at a package.json depencency for the plugin @semantic-release/changelog inside the golang repo... Am I missing something? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
sheerlox
Dec 11, 2023
Replies: 1 comment 1 reply
-
#3082 (comment) should solve your issue |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ootkin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#3082 (comment) should solve your issue