From 2bd2cc04b34eefb8e60edf85cf613aa535710056 Mon Sep 17 00:00:00 2001 From: "Jibon L. Costa" Date: Sat, 23 Nov 2024 22:39:33 +0100 Subject: [PATCH] fix(cli): added release-please-action --- .github/workflows/release.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f0886b..50063a9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,22 +1,37 @@ name: Build and release client on: - release: - types: [published] + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + jobs: build: runs-on: ubuntu-latest steps: + - uses: googleapis/release-please-action@v4 + id: release + with: + token: ${{ secrets.GITHUB_TOKEN }} + release-type: node - name: Checkout + if: ${{ steps.release.outputs.release_created }} uses: actions/checkout@v4 - name: setup node + if: ${{ steps.release.outputs.release_created }} uses: actions/setup-node@v4 with: node-version: '20.x' - uses: pnpm/action-setup@v4 name: Install pnpm + if: ${{ steps.release.outputs.release_created }} with: version: 9 - name: Build and publish + if: ${{ steps.release.outputs.release_created }} run: | pnpm install pnpm run build