From 6533242ff66653b1b58619450f75dd45627211d5 Mon Sep 17 00:00:00 2001 From: Niek Palm Date: Wed, 19 Oct 2022 13:10:26 +0200 Subject: [PATCH] chore: Enable pre releases for next branch --- .github/workflows/release.yml | 6 +++--- .releaserc.json | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd209db46f..951a87b77b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,18 +75,18 @@ jobs: yarn release -d --repositoryUrl https://x-access-token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git - name: Release - if: github.event_name != 'pull_request' && contains('refs/heads/main', github.ref) + if: (github.event_name != 'pull_request' && contains('refs/heads/main', github.ref)) || github.event_name != 'workflow_dispatch' env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} run: | cp .release/* . yarn yarn release --repositoryUrl https://x-access-token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git - + provenance: name: Generate provenance runs-on: ubuntu-20.04 - needs: + needs: release if: startsWith(github.ref, 'refs/tags/') diff --git a/.releaserc.json b/.releaserc.json index 574d3d03e4..e9c135fd14 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -6,6 +6,10 @@ { "name": "develop", "prerelease": true + }, + { + "name": "next", + "prerelease": true } ], "tagFormat": "v${version}", @@ -45,4 +49,4 @@ } ] ] -} \ No newline at end of file +}