Skip to content

Commit

Permalink
chore: add a next pre-release channel closes #64
Browse files Browse the repository at this point in the history
  • Loading branch information
YuukanOO committed Sep 13, 2024
1 parent cb58030 commit ec5bf83
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:

release:
name: Release
if: github.ref_name == 'main'
if: github.ref_name == 'main' || github.ref_name == 'next'
runs-on: ubuntu-latest
needs: [backend, frontend]
steps:
Expand Down
11 changes: 9 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
{
"branches": [
"main"
{
"name": "main"
},
{
"name": "next",
"channel": "next",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
"prepareCmd": "SEELF_VERSION=${nextRelease.version} make prepare-release && echo \"docker_tags=yuukanoo/seelf:${nextRelease.version},yuukanoo/seelf:latest\" >> \"$GITHUB_ENV\"",
"prepareCmd": "SEELF_VERSION=${nextRelease.version} make prepare-release && sh -c \"if [ ${branch.name} = 'next' ]; then echo 'docker_tags=yuukanoo/seelf:next'; else echo 'docker_tags=yuukanoo/seelf:${nextRelease.version},yuukanoo/seelf:latest'; fi\" >> \"$GITHUB_ENV\"",
"publishCmd": "echo \"docker_publish=true\" >> \"$GITHUB_ENV\""
}
],
Expand Down

0 comments on commit ec5bf83

Please sign in to comment.