Skip to content

Commit 0166bb3

Browse files
Katarina Antonkaciakmaciak
authored andcommitted
ci(release): configure beta releases
resolve #54
1 parent 7ac10fb commit 0166bb3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- master
6+
- beta
67

78
jobs:
89
lint-test-build:
@@ -64,7 +65,7 @@ jobs:
6465
run: npm run release
6566

6667
docs:
67-
if: github.repository == 'kaciakmaciak/react-query-subscription'
68+
if: github.repository == 'kaciakmaciak/react-query-subscription' && github.ref == 'refs/heads/master'
6869
name: 'Publish Docs'
6970
runs-on: ubuntu-20.04
7071

.releaserc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
2-
"branches": ["master"],
2+
"branches": [
3+
{ "name": "master" },
4+
{ "name": "beta", "channel": "beta", "prerelease": true }
5+
],
36
"preset": "conventionalcommits",
47
"presetConfig": {
58
"types": [

0 commit comments

Comments
 (0)