Skip to content

Commit 86ef087

Browse files
committed
feat: fix client subscription ci issues
1 parent 771a319 commit 86ef087

File tree

5 files changed

+23
-39
lines changed

5 files changed

+23
-39
lines changed

.github/actions/setup/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ runs:
1919
- name: Install dependencies
2020
shell: bash
2121
run: pnpm install --frozen-lockfile --prefer-offline
22+
23+
- name: Rebuild packages that need postinstall (onlyBuiltDependencies)
24+
shell: bash
25+
run: pnpm rebuild --pending

.github/workflows/release.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,12 @@ jobs:
2222
with:
2323
fetch-depth: 0
2424

25-
- uses: pnpm/action-setup@v4
26-
with:
27-
version: '10.20.0'
28-
29-
- uses: actions/setup-node@v4
30-
with:
31-
node-version: '20.18.1'
32-
cache: 'pnpm'
33-
3425
- name: Setup Atlas
3526
uses: ariga/setup-atlas@master
3627
with:
3728
cloud-token: ${{ secrets.ATLAS_CLOUD_TOKEN }}
3829

39-
- name: Install Dependencies
40-
run: pnpm install --frozen-lockfile
30+
- uses: ./.github/actions/setup
4131

4232
- name: Create Release Pull Request
4333
uses: changesets/action@v1

.github/workflows/type-test-health.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,7 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v4
2323

24-
- uses: pnpm/action-setup@v4
25-
with:
26-
version: '10.20.0'
27-
28-
- uses: actions/setup-node@v4
29-
with:
30-
node-version: '20'
31-
cache: 'pnpm'
32-
33-
- name: Install dependencies
34-
run: pnpm install --frozen-lockfile
24+
- uses: ./.github/actions/setup
3525

3626
- name: Run Type Testing Health Check
3727
run: pnpm nx test:types:health dsl

pkgs/client/project.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"local": true,
6464
"cache": false,
6565
"options": {
66-
"cwd": "{projectRoot}",
66+
"cwd": "pkgs/client",
6767
"commands": [
6868
"supabase status || (echo \"Starting Supabase...\" && supabase start)"
6969
],
@@ -75,7 +75,7 @@
7575
"local": true,
7676
"cache": false,
7777
"options": {
78-
"cwd": "{projectRoot}",
78+
"cwd": "pkgs/client",
7979
"commands": ["supabase start"],
8080
"parallel": false
8181
}
@@ -85,7 +85,7 @@
8585
"local": true,
8686
"cache": false,
8787
"options": {
88-
"cwd": "{projectRoot}",
88+
"cwd": "pkgs/client",
8989
"commands": ["supabase stop --no-backup"],
9090
"parallel": false
9191
}
@@ -95,7 +95,7 @@
9595
"local": true,
9696
"cache": false,
9797
"options": {
98-
"cwd": "{projectRoot}",
98+
"cwd": "pkgs/client",
9999
"commands": ["supabase status"],
100100
"parallel": false
101101
}
@@ -113,7 +113,7 @@
113113
"{projectRoot}/supabase/seed.sql"
114114
],
115115
"options": {
116-
"cwd": "{projectRoot}",
116+
"cwd": "pkgs/client",
117117
"commands": [
118118
"mkdir -p supabase/migrations/",
119119
"rm -f supabase/migrations/*.sql",
@@ -129,7 +129,7 @@
129129
"cache": false,
130130
"dependsOn": ["supabase:prepare"],
131131
"options": {
132-
"cwd": "{projectRoot}",
132+
"cwd": "pkgs/client",
133133
"commands": ["supabase db reset"],
134134
"parallel": false
135135
}
@@ -139,7 +139,7 @@
139139
"local": true,
140140
"dependsOn": ["supabase:ensure-started", "supabase:prepare"],
141141
"options": {
142-
"cwd": "{projectRoot}",
142+
"cwd": "pkgs/client",
143143
"commands": ["./scripts/ensure-db"],
144144
"parallel": false
145145
},
@@ -162,7 +162,7 @@
162162
"dependsOn": ["db:ensure", "build"],
163163
"inputs": ["default", "^production"],
164164
"options": {
165-
"cwd": "{projectRoot}",
165+
"cwd": "pkgs/client",
166166
"commands": ["vitest run __tests__/integration/"],
167167
"parallel": false
168168
}
@@ -172,7 +172,7 @@
172172
"dependsOn": ["build"],
173173
"inputs": ["default", "^production"],
174174
"options": {
175-
"cwd": "{projectRoot}",
175+
"cwd": "pkgs/client",
176176
"commands": ["vitest run __tests__/ --exclude __tests__/integration/"],
177177
"parallel": false
178178
}
@@ -183,7 +183,7 @@
183183
"dependsOn": ["db:ensure", "build"],
184184
"inputs": ["default", "^production"],
185185
"options": {
186-
"cwd": "{projectRoot}",
186+
"cwd": "pkgs/client",
187187
"commands": ["vitest run __tests__/"],
188188
"parallel": false
189189
}
@@ -199,7 +199,7 @@
199199
"dependsOn": ["db:ensure", "build"],
200200
"inputs": ["default", "^production"],
201201
"options": {
202-
"cwd": "{projectRoot}",
202+
"cwd": "pkgs/client",
203203
"commands": ["node scripts/performance-benchmark.mjs"],
204204
"parallel": false
205205
}

pkgs/core/project.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"local": true,
134134
"cache": false,
135135
"options": {
136-
"cwd": "{projectRoot}",
136+
"cwd": "pkgs/core",
137137
"commands": [
138138
"supabase status || (echo \"Starting Supabase...\" && supabase start)"
139139
],
@@ -145,7 +145,7 @@
145145
"local": true,
146146
"cache": false,
147147
"options": {
148-
"cwd": "{projectRoot}",
148+
"cwd": "pkgs/core",
149149
"commands": ["supabase start"],
150150
"parallel": false
151151
}
@@ -155,7 +155,7 @@
155155
"local": true,
156156
"cache": false,
157157
"options": {
158-
"cwd": "{projectRoot}",
158+
"cwd": "pkgs/core",
159159
"commands": ["supabase stop --no-backup"],
160160
"parallel": false
161161
}
@@ -165,7 +165,7 @@
165165
"local": true,
166166
"cache": false,
167167
"options": {
168-
"cwd": "{projectRoot}",
168+
"cwd": "pkgs/core",
169169
"commands": ["supabase status"],
170170
"parallel": false
171171
}
@@ -175,7 +175,7 @@
175175
"local": true,
176176
"cache": false,
177177
"options": {
178-
"cwd": "{projectRoot}",
178+
"cwd": "pkgs/core",
179179
"commands": ["supabase stop --no-backup", "supabase start"],
180180
"parallel": false
181181
}
@@ -186,7 +186,7 @@
186186
"cache": false,
187187
"dependsOn": ["supabase:ensure-started"],
188188
"options": {
189-
"cwd": "{projectRoot}",
189+
"cwd": "pkgs/core",
190190
"commands": ["supabase db reset"],
191191
"parallel": false
192192
}

0 commit comments

Comments
 (0)