Skip to content

Commit 97cf291

Browse files
authored
chore: setup semantic-release for 1.x maintenance (#137)
1 parent ac2128e commit 97cf291

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/main.yml

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+
- '1.x'
67
pull_request:
78
paths-ignore:
89
- '.gitignore'
@@ -40,7 +41,7 @@ jobs:
4041
publish-module:
4142
name: 'Publish Module to NPM on Node ${{ matrix.node }} and ${{ matrix.os }}'
4243
needs: build
43-
if: github.repository == 'react-hook-form/resolvers' && (github.ref =='refs/heads/master')
44+
if: github.repository == 'react-hook-form/resolvers' && (github.ref =='refs/heads/master' || github.ref == 'refs/heads/1.x')
4445
runs-on: ubuntu-latest
4546
steps:
4647
- name: Checkout repo

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
},
9191
"release": {
9292
"branches": [
93+
"1.x",
9394
"master"
9495
]
9596
},

0 commit comments

Comments
 (0)