Skip to content

Commit

Permalink
Fix: Automatic version update was in wrong semantic-release step
Browse files Browse the repository at this point in the history
  • Loading branch information
politician committed Sep 19, 2020
1 parent 6cf43ae commit a06e19a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .config/release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ module.exports = {
[
"@semantic-release/exec",
{
generateNotes:
"find docs/*.md -type f -print0 | xargs -0 sed -i -E 's/(copybara-action@)[^s]+/\1${nextRelease.version}/g'",
prepareCmd:
"find docs/*.md -type f -exec sed -i -E 's/(copybara-action@)[^s]+/\1${nextRelease.version}/g' {} +",
},
],
[
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.workflow.pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ jobs:

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# Trick semantic release because releasing from a PR is unusual but necessary in our case
run: GITHUB_EVENT_NAME=push GITHUB_REF=main npx semantic-release -e ./.config/release.config.js

0 comments on commit a06e19a

Please sign in to comment.