Skip to content

Commit

Permalink
chore(ci): allow prereleases
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed Jul 30, 2024
1 parent dbc9224 commit 5d4e46b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta'

steps:
- uses: actions/checkout@v4
Expand All @@ -35,4 +36,8 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Publish packages
if: github.ref == 'refs/heads/main'
run: pnpm publish -r
- name: Publish packages (beta)
if: github.ref == 'refs/heads/beta'
run: pnpm publish -r --tag beta
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,15 @@
"registry": "https://registry.npmjs.org"
},
"release": {
"branches": "main",
"branches": [
{
"name": "main"
},
{
"name": "beta",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
Expand Down

0 comments on commit 5d4e46b

Please sign in to comment.