From a06e19a0704758cfce5baa0c92d430efb693078c Mon Sep 17 00:00:00 2001 From: Romain Barissat Date: Sat, 19 Sep 2020 12:46:06 +0700 Subject: [PATCH] Fix: Automatic version update was in wrong semantic-release step --- .config/release.config.js | 4 ++-- .github/workflows/test.workflow.pr.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/release.config.js b/.config/release.config.js index 28baaf4..0d01f5e 100644 --- a/.config/release.config.js +++ b/.config/release.config.js @@ -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' {} +", }, ], [ diff --git a/.github/workflows/test.workflow.pr.yml b/.github/workflows/test.workflow.pr.yml index 731aa34..c39c66b 100644 --- a/.github/workflows/test.workflow.pr.yml +++ b/.github/workflows/test.workflow.pr.yml @@ -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