Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tsi authored Dec 28, 2023
1 parent eda76de commit 7be1ac4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 7be1ac4

Please sign in to comment.