Skip to content

Commit c3b9ada

Browse files
committed
chore: update upload script
1 parent 9e3f6df commit c3b9ada

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

scripts/deploy.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,9 @@ const client = createClient(
6060
process.env.SUPABASE_SERVICE_ROLE_KEY!,
6161
);
6262

63-
console.log('Adding default plugin');
63+
console.log('Upserting plugin');
6464
const defaultPlugin = await client.from('registry_plugins').upsert({
6565
name: 'default',
66-
display_name: 'Default Plugin',
67-
homepage: 'https://codifycli.com',
68-
repository_url: 'https://github.com/codifycli/default-plugin',
69-
license: 'ISC',
7066
}, { onConflict: 'name' })
7167
.select()
7268
.throwOnError();
@@ -100,12 +96,10 @@ async function uploadResources(prerelease: boolean) {
10096

10197
const metadataByType = new Map(Metadata.map((m) => [m.type, m]));
10298

103-
const { id: versionId } = versionRow.data![0];
104-
10599
if (!prerelease) {
106100
console.log('Updating latest version pointer');
107101
await client.from('registry_plugins')
108-
.update({ latest_version: version, latest_version_id: versionId })
102+
.update({ latest_version: version })
109103
.eq('id', pluginId)
110104
.throwOnError();
111105
}
@@ -156,4 +150,4 @@ async function uploadResources(prerelease: boolean) {
156150
.upsert(parameters, { onConflict: 'name,resource_id,prerelease' })
157151
.throwOnError();
158152
}
159-
}
153+
}

0 commit comments

Comments
 (0)