From ec5bf83f795fc7c59929cfaa5bd1a6ed7124e8c1 Mon Sep 17 00:00:00 2001 From: Julien Leicher Date: Mon, 2 Sep 2024 10:01:40 +0200 Subject: [PATCH] chore: add a next pre-release channel closes #64 --- .github/workflows/ci.yml | 2 +- .releaserc | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56c16c61..180dac81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/.releaserc b/.releaserc index 2e7ce3d8..8067229b 100644 --- a/.releaserc +++ b/.releaserc @@ -1,6 +1,13 @@ { "branches": [ - "main" + { + "name": "main" + }, + { + "name": "next", + "channel": "next", + "prerelease": true + } ], "plugins": [ "@semantic-release/commit-analyzer", @@ -8,7 +15,7 @@ [ "@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\"" } ],