Skip to content

Commit 5d58822

Browse files
committed
run CI on v1.x branch
1 parent faabdef commit 5d58822

5 files changed

Lines changed: 25 additions & 4 deletions

File tree

.changeset/config-v1.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}

.github/workflows/cr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- v1.x
78
merge_group:
89
pull_request:
910

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- v1.x
78

89
concurrency: ${{ 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 }}

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: 🧪 Tests
33
on:
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

1010
jobs:
1111
tests:

.github/workflows/typecheck.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- v1.x
78
- dev
89
- release-*
910
tags-ignore:
@@ -12,6 +13,7 @@ on:
1213
pull_request:
1314
branches:
1415
- main
16+
- v1.x
1517
- dev
1618
- release-*
1719

0 commit comments

Comments
 (0)