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 +}