From 7be1ac4e920858cee9c0bd8f8924e8f3f146aa8c Mon Sep 17 00:00:00 2001 From: Tsachi Shlidor Date: Thu, 28 Dec 2023 10:54:37 +0200 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 50ec02a9..39a72124 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,11 +11,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v4 + - uses: google-github-actions/release-please-action@v3 id: release with: release-type: node - target-branch: ${{ github.ref_name }} + default-branch: ${{ github.ref_name }} + prerelease: ${{ github.ref_name != 'master' }} + # versioning-strategy: ${{ github.ref_name == 'master' && 'default' || 'prerelease' }} # The logic below handles the npm publication: - uses: actions/checkout@v4 # these if statements ensure that a publication only occurs when @@ -24,7 +26,6 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '20.x' - registry-url: 'https://registry.npmjs.org' if: ${{ steps.release.outputs.release_created }} - run: npm ci if: ${{ steps.release.outputs.release_created }}