Skip to content

Commit

Permalink
fix: build artifacts during prepare step
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Aug 10, 2023
1 parent 9edcfdd commit 1bc5f48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ const config = {
// replaces the github plugin
"@semantic-release/exec",
{
prepareCmd: "goreleaser build --clean",
publishCmd: [
"export GORELEASER_CURRENT_TAG=${nextRelease.gitTag}",
"export GORELEASER_PREVIOUS_TAG=${lastRelease.gitTag}",
"echo '${nextRelease.notes}' > /tmp/release-notes.md",
"goreleaser release --release-notes /tmp/release-notes.md --clean",
].join(" && "),
"goreleaser release --release-notes /tmp/release-notes.md",
].join("\n"),
},
],
[
Expand Down

0 comments on commit 1bc5f48

Please sign in to comment.