Skip to content

Commit

Permalink
build: configure prerelease strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
JonDotsoy committed Oct 28, 2023
1 parent 60b7a5a commit 5327744
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ jobs:
env:
SCRIPT: |
const e = /^release\/(?<name>\w+)/;
const releaseName = e.exec(process.env.GITHUB_REF_NAME)?.groups?.name ?? "latest";
const groups = e.exec(process.env.GITHUB_REF_NAME)?.groups
const releaseName = groups?.name ?? "latest";
console.log(`RELEASE_NAME=${releaseName}`);
console.log(`PRERELEASE=${releaseName==="latest"?'true':'false'}`);
run: node -e "$SCRIPT" >> $GITHUB_OUTPUT
- uses: google-github-actions/release-please-action@v3
with:
release-type: node
prerelease: true
prerelease: ${{ steps.setup.outputs.PRERELEASE }}
monorepo-tags: true
package-name: ${{ steps.setup.outputs.RELEASE_NAME }}
default-branch: ${{ github.ref_name }}
Expand Down

0 comments on commit 5327744

Please sign in to comment.