Skip to content

Commit

Permalink
chore: Enable pre releases for next branch
Browse files Browse the repository at this point in the history
  • Loading branch information
npalm committed Oct 21, 2022
1 parent 71e9da7 commit 6533242
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/')

Expand Down
6 changes: 5 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
{
"name": "develop",
"prerelease": true
},
{
"name": "next",
"prerelease": true
}
],
"tagFormat": "v${version}",
Expand Down Expand Up @@ -45,4 +49,4 @@
}
]
]
}
}

0 comments on commit 6533242

Please sign in to comment.