From 21dc15b22156dc563a39d765dbe02d8b129930cf Mon Sep 17 00:00:00 2001 From: Thomas Engels Date: Thu, 3 Oct 2024 17:06:51 +0200 Subject: [PATCH] github action: changeset instead of release branches --- .github/workflows/release.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 23622e0..15963dc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,12 @@ name: Release on: push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + branches: + - main + +permissions: + contents: write + pull-requests: write jobs: release: @@ -23,7 +26,13 @@ jobs: cache: 'npm' cache-dependency-path: package-lock.json - run: npm ci - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npx semantic-release + - name: release-please-action + uses: googleapis/release-please-action@v4.1.3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + release-type: simple + + + + +