-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): support pre-releases (#191)
- Loading branch information
1 parent
e198fe5
commit f0cb7b3
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |