From 5ef466ba5dadf1e7665de0177283d55e1ac0e981 Mon Sep 17 00:00:00 2001 From: Zita Szupera Date: Tue, 28 Nov 2023 16:24:46 +0100 Subject: [PATCH] chore: release process --- .github/workflows/pr-title-check.yml | 13 +++++++++++++ .github/workflows/release-pr.yml | 21 +++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/pr-title-check.yml create mode 100644 .github/workflows/release-pr.yml diff --git a/.github/workflows/pr-title-check.yml b/.github/workflows/pr-title-check.yml new file mode 100644 index 0000000..e2a42f9 --- /dev/null +++ b/.github/workflows/pr-title-check.yml @@ -0,0 +1,13 @@ +name: Check PR title + +on: + pull_request: + types: [opened, edited, synchronize, reopened] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: aslafy-z/conventional-pr-title-action@v3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml new file mode 100644 index 0000000..ddfe200 --- /dev/null +++ b/.github/workflows/release-pr.yml @@ -0,0 +1,21 @@ +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v3 + with: + release-type: node + package-name: "@stream-io/node-sdk" + bump-minor-pre-major: true + bump-patch-for-minor-pre-major: true