File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "$schema" : " https://unpkg.com/@changesets/config@2.3.1/schema.json" ,
3+ "changelog" : " @changesets/cli/changelog" ,
4+ "commit" : false ,
5+ "fixed" : [],
6+ "linked" : [],
7+ "access" : " public" ,
8+ "baseBranch" : " v1.x" ,
9+ "updateInternalDependencies" : " patch" ,
10+ "ignore" : [" landing-page" , " tests" ]
11+ }
Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ - v1.x
78 merge_group :
89 pull_request :
910
Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ - v1.x
78
89concurrency : ${{ github.workflow }}-${{ github.ref }}
910
@@ -27,13 +28,19 @@ jobs:
2728 - name : Install Dependencies
2829 run : pnpm i --frozen-lockfile
2930
31+ - name : Setup changeset config for v1.x branch
32+ if : github.ref_name == 'v1.x'
33+ run : |
34+ cp .changeset/config-v1.json .changeset/config.json
35+
3036 - name : Create Release Pull Request or Publish to npm
3137 id : changesets
3238 uses : changesets/action@v1
3339 with :
3440 publish : pnpm run release
35- title : " chore: release"
36- commit : " chore: release"
41+ title : " ${{ github.ref_name == 'v1.x' && 'chore: release v1.x' || 'chore: release' }}"
42+ commit : " ${{ github.ref_name == 'v1.x' && 'chore: release v1.x' || 'chore: release' }}"
43+ setupGitUser : false
3744 env :
3845 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3946 NPM_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ name: 🧪 Tests
33on :
44 workflow_dispatch :
55 pull_request :
6- branches : [main]
6+ branches : [main, v1.x ]
77 push :
8- branches : [main]
8+ branches : [main, v1.x ]
99
1010jobs :
1111 tests :
Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+ - v1.x
78 - dev
89 - release-*
910 tags-ignore :
1213 pull_request :
1314 branches :
1415 - main
16+ - v1.x
1517 - dev
1618 - release-*
1719
You can’t perform that action at this time.
0 commit comments