From 9c852cedbe98bd9f23f8f4d69da50f7bffdb7a9e Mon Sep 17 00:00:00 2001 From: Randolf Jung Date: Tue, 31 May 2022 14:41:22 +0200 Subject: [PATCH] chore: amend version freezes on release-please PRs --- .github/release-please.yml | 1 + .github/workflows/pre-release.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/pre-release.yml diff --git a/.github/release-please.yml b/.github/release-please.yml index 7230cee90c6..60a1e744b4b 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1,3 +1,4 @@ releaseType: node primaryBranch: main +handleGHRelease: true manifest: true diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml new file mode 100644 index 00000000000..1b269bb44f4 --- /dev/null +++ b/.github/workflows/pre-release.yml @@ -0,0 +1,26 @@ +name: Publish + +on: + push: + branches: + - release-please-* + +jobs: + pre-publish: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install dependencies + run: npm install + - name: Build + run: | + node utils/generate_version_file.js + IS_PRE_RELEASE=1 npm run doc + - name: Commit and push + run: | + git add -A + git commit --amend --no-edit + git push -f