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