From c3f1f7d6a1b049a42a7ef99cd65811ae8f7cb41a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Mangeonjean?= Date: Mon, 29 Jan 2024 12:03:35 +0100 Subject: [PATCH] feat: allow to release prerelease versions --- .github/workflows/check_build.yml | 2 +- .github/workflows/release.yml | 4 +--- release.config.js | 3 ++- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check_build.yml b/.github/workflows/check_build.yml index f6932f4..16d3ad1 100644 --- a/.github/workflows/check_build.yml +++ b/.github/workflows/check_build.yml @@ -15,7 +15,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-node@v3 - run: npm ci - - run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD + - run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose check: name: Check build runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 41fcd99..2695fb6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,6 @@ name: Release -on: - push: - branches: [main] +on: workflow_dispatch jobs: release: diff --git a/release.config.js b/release.config.js index 2809fdf..5c9d004 100644 --- a/release.config.js +++ b/release.config.js @@ -1,7 +1,8 @@ module.exports = { ...require('@codingame/semantic-release-config'), branches: [ - 'main' + 'main', + { name: '*', channel: 'next', prerelease: true } ], plugins: [ '@semantic-release/commit-analyzer',