Skip to content

Commit 3a363fd

Browse files
committed
build: semantic-release config
1 parent 11da7f0 commit 3a363fd

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- beta
78
pull_request:
89

910
jobs:
@@ -44,7 +45,7 @@ jobs:
4445

4546
publish:
4647
# publish only when merged in master on original repo, not on PR
47-
if: github.repository == 'DamianOsipiuk/vue-query' && github.ref == 'refs/heads/main'
48+
if: github.repository == 'DamianOsipiuk/vue-query' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta')
4849
needs: [verify, commitlint]
4950
runs-on: ubuntu-latest
5051

@@ -57,7 +58,7 @@ jobs:
5758
registry-url: https://registry.npmjs.org/
5859
- run: npm ci
5960
- run: npm run build
60-
- run: npx semantic-release@17 --branches main
61+
- run: npx semantic-release@17
6162
env:
6263
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION_TOKEN}}
6364
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.releaserc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"branches": [
3+
"main",
4+
{ "name": "beta", "prerelease": true },
5+
{ "name": "alpha", "prerelease": true }
6+
]
7+
}

0 commit comments

Comments
 (0)