Skip to content

Commit

Permalink
chore(ci): support pre-releases (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas authored Jun 26, 2024
1 parent e198fe5 commit f0cb7b3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,12 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "ory-bot"
git add -A
- uses: actions/github-script@v7
id: compute-dist-tag
with:
script: |
const isPrerelease = context.payload.release.prerelease;
return isPrerelease ? 'next' : 'latest';
result-encoding: string
- run: |
npx lerna publish -y ${{ github.event.release.tag_name }} --message 'chore(release): bump version to %s' --no-git-tag-version
npx lerna publish -y ${{ github.event.release.tag_name }} --dist-tag="${{ steps.compute-dist-tag.outputs.result }}" --message 'chore(release): bump version to %s' --no-git-tag-version

0 comments on commit f0cb7b3

Please sign in to comment.