From be261370413e3ed06ad66b5f01cc2d154b91bd4d Mon Sep 17 00:00:00 2001 From: jrandolf <101637635+jrandolf@users.noreply.github.com> Date: Mon, 30 May 2022 11:47:15 +0200 Subject: [PATCH] chore: use release-please app (#8412) --- .github/release-please.yml | 3 +++ .../workflows/{release.yml => publish.yml} | 23 +++---------------- 2 files changed, 6 insertions(+), 20 deletions(-) create mode 100644 .github/release-please.yml rename .github/workflows/{release.yml => publish.yml} (79%) diff --git a/.github/release-please.yml b/.github/release-please.yml new file mode 100644 index 00000000000..1b197bee32f --- /dev/null +++ b/.github/release-please.yml @@ -0,0 +1,3 @@ +releaseType: node +handleGHRelease: true +primaryBranch: main diff --git a/.github/workflows/release.yml b/.github/workflows/publish.yml similarity index 79% rename from .github/workflows/release.yml rename to .github/workflows/publish.yml index 5a5c57692f7..4f7b57f50c9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/publish.yml @@ -1,29 +1,12 @@ -name: Release +name: Publish on: push: - branches: - - main + tags: + - '*' jobs: - release-pr: - runs-on: ubuntu-latest - outputs: - release_created: ${{ steps.release.outputs.release_created }} - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Remove `-post` suffix - run: node utils/remove_version_suffix.js - - name: Release - uses: google-github-actions/release-please-action@v3 - id: release - with: - release-type: node - publish: - needs: release-pr - if: ${{ needs.release-pr.outputs.release_created }} runs-on: ubuntu-latest permissions: contents: read