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