Skip to content

Commit 417e0e6

Browse files
chore(ci): add CONVEX_INGEST_URL secret to stable release workflow
1 parent e39188a commit 417e0e6

File tree

5 files changed

+14
-38
lines changed

5 files changed

+14
-38
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
env:
8181
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
8282
BTS_TELEMETRY: 1
83+
CONVEX_INGEST_URL: ${{ secrets.CONVEX_INGEST_URL }}
8384

8485
- name: Update CLI types dependency
8586
if: steps.version.outputs.version != ''
@@ -93,6 +94,7 @@ jobs:
9394
run: cd apps/cli && bun run build
9495
env:
9596
BTS_TELEMETRY: 1
97+
CONVEX_INGEST_URL: ${{ secrets.CONVEX_INGEST_URL }}
9698

9799
- name: Update create-bts alias package version
98100
if: steps.version.outputs.version != ''
@@ -107,13 +109,15 @@ jobs:
107109
env:
108110
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
109111
BTS_TELEMETRY: 1
112+
CONVEX_INGEST_URL: ${{ secrets.CONVEX_INGEST_URL }}
110113

111114
- name: Publish create-bts alias to NPM
112115
if: steps.version.outputs.version != ''
113116
run: cd packages/create-bts && bun publish --access public
114117
env:
115118
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
116119
BTS_TELEMETRY: 1
120+
CONVEX_INGEST_URL: ${{ secrets.CONVEX_INGEST_URL }}
117121

118122
canary:
119123
runs-on: ubuntu-latest

apps/cli/src/utils/analytics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { ProjectConfig } from "../types";
22
import { getLatestCLIVersion } from "./get-latest-cli-version";
33
import { isTelemetryEnabled } from "./telemetry";
44

5-
const CONVEX_INGEST_URL = "https://striped-seahorse-863.convex.site/api/analytics/ingest";
5+
const CONVEX_INGEST_URL = process.env.CONVEX_INGEST_URL;
66

77
async function sendConvexEvent(payload: Record<string, unknown>) {
88
if (!CONVEX_INGEST_URL) return;

apps/cli/tsdown.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ export default defineConfig({
1212
},
1313
env: {
1414
BTS_TELEMETRY: process.env.BTS_TELEMETRY || "0",
15+
CONVEX_INGEST_URL: process.env.CONVEX_INGEST_URL || "",
1516
},
1617
});

packages/backend/convex/_generated/api.d.ts

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ import type * as showcase from "../showcase.js";
1616
import type * as stats from "../stats.js";
1717
import type * as testimonials from "../testimonials.js";
1818

19-
import type {
20-
ApiFromModules,
21-
FilterApi,
22-
FunctionReference,
23-
} from "convex/server";
19+
import type { ApiFromModules, FilterApi, FunctionReference } from "convex/server";
2420

2521
declare const fullApi: ApiFromModules<{
2622
analytics: typeof analytics;
@@ -40,10 +36,7 @@ declare const fullApi: ApiFromModules<{
4036
* const myFunctionReference = api.myModule.myFunction;
4137
* ```
4238
*/
43-
export declare const api: FilterApi<
44-
typeof fullApi,
45-
FunctionReference<any, "public">
46-
>;
39+
export declare const api: FilterApi<typeof fullApi, FunctionReference<any, "public">>;
4740

4841
/**
4942
* A utility for referencing Convex functions in your app's internal API.
@@ -53,10 +46,7 @@ export declare const api: FilterApi<
5346
* const myFunctionReference = internal.myModule.myFunction;
5447
* ```
5548
*/
56-
export declare const internal: FilterApi<
57-
typeof fullApi,
58-
FunctionReference<any, "internal">
59-
>;
49+
export declare const internal: FilterApi<typeof fullApi, FunctionReference<any, "internal">>;
6050

6151
export declare const components: {
6252
ossStats: {
@@ -110,12 +100,7 @@ export declare const components: {
110100
updatedAt: number;
111101
}>
112102
>;
113-
updateGithubOwner: FunctionReference<
114-
"mutation",
115-
"internal",
116-
{ name: string },
117-
any
118-
>;
103+
updateGithubOwner: FunctionReference<"mutation", "internal", { name: string }, any>;
119104
updateGithubOwnerStats: FunctionReference<
120105
"action",
121106
"internal",
@@ -226,12 +211,7 @@ export declare const components: {
226211
updatedAt: number;
227212
}
228213
>;
229-
updateNpmOrg: FunctionReference<
230-
"mutation",
231-
"internal",
232-
{ name: string },
233-
any
234-
>;
214+
updateNpmOrg: FunctionReference<"mutation", "internal", { name: string }, any>;
235215
updateNpmOrgStats: FunctionReference<
236216
"action",
237217
"internal",
@@ -262,12 +242,7 @@ export declare const components: {
262242
},
263243
any
264244
>;
265-
updateNpmPackageStats: FunctionReference<
266-
"action",
267-
"internal",
268-
{ name: string },
269-
any
270-
>;
245+
updateNpmPackageStats: FunctionReference<"action", "internal", { name: string }, any>;
271246
};
272247
};
273248
};

packages/backend/convex/_generated/dataModel.d.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ export type TableNames = TableNamesInDataModel<DataModel>;
2727
*
2828
* @typeParam TableName - A string literal type of the table name (like "users").
2929
*/
30-
export type Doc<TableName extends TableNames> = DocumentByName<
31-
DataModel,
32-
TableName
33-
>;
30+
export type Doc<TableName extends TableNames> = DocumentByName<DataModel, TableName>;
3431

3532
/**
3633
* An identifier for a document in Convex.
@@ -45,8 +42,7 @@ export type Doc<TableName extends TableNames> = DocumentByName<
4542
*
4643
* @typeParam TableName - A string literal type of the table name (like "users").
4744
*/
48-
export type Id<TableName extends TableNames | SystemTableNames> =
49-
GenericId<TableName>;
45+
export type Id<TableName extends TableNames | SystemTableNames> = GenericId<TableName>;
5046

5147
/**
5248
* A type describing your Convex data model.

0 commit comments

Comments
 (0)