diff --git a/.github/workflows/release-to-github.yaml b/.github/workflows/release-to-github.yaml index 7e4419fec..3c488cb3f 100644 --- a/.github/workflows/release-to-github.yaml +++ b/.github/workflows/release-to-github.yaml @@ -95,7 +95,7 @@ jobs: - name: Install dependencies run: pnpm install - - name: Build + - name: Generate prisma schemas run: | ( cd drizzle-orm @@ -107,9 +107,16 @@ jobs: pnpm prisma generate --schema tests/prisma/mysql/schema.prisma pnpm prisma generate --schema tests/prisma/sqlite/schema.prisma ) + + - name: Build + working-directory: ${{ matrix.package }} + run: | + jq '.name="@singlestore-labs/${{ matrix.package }}"' package.json --tab > tmp.$$.json && mv tmp.$$.json package.json + pnpm build - name: Run tests + if: 0 env: PG_CONNECTION_STRING: postgres://postgres:postgres@localhost:55433/drizzle PG_VECTOR_CONNECTION_STRING: postgres://postgres:postgres@localhost:54321/drizzle @@ -137,6 +144,7 @@ jobs: npm run pack - name: Run @arethetypeswrong/cli + if: 0 working-directory: ${{ matrix.package }} shell: bash env: @@ -148,9 +156,12 @@ jobs: working-directory: ${{ matrix.package }} shell: bash env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - version="${{ steps.checks.outputs.version }}" + version=latest + + echo "@singlestore-labs:registry=https://npm.pkg.github.com" > .npmrc + echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc echo "Publishing ${{ matrix.package }}@$version" npm run publish diff --git a/drizzle-orm/src/singlestore-core/columns/guid.ts b/drizzle-orm/src/singlestore-core/columns/guid.ts index 5f2cd175e..855e63bc8 100644 --- a/drizzle-orm/src/singlestore-core/columns/guid.ts +++ b/drizzle-orm/src/singlestore-core/columns/guid.ts @@ -1,10 +1,10 @@ -import { ColumnBaseConfig } from '~/column'; -import { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder'; -import { entityKind } from '~/entity'; -import { AnySingleStoreTable } from '~/singlestore-core/table'; -import { sql } from '~/sql/sql'; -import { Equal } from '~/utils'; -import { SingleStoreColumn, SingleStoreColumnBuilder } from './common'; +import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder'; +import type { ColumnBaseConfig } from '~/column.ts'; +import { entityKind } from '~/entity.ts'; +import type { AnySingleStoreTable } from '~/singlestore-core/table'; +import { sql } from '~/sql/sql.ts'; +import type { Equal } from '~/utils'; +import { SingleStoreColumn, SingleStoreColumnBuilder } from './common.ts'; export type SingleStoreGUIDBuilderInitial = SingleStoreGUIDBuilder<{ name: TName; @@ -21,7 +21,7 @@ export class SingleStoreGUIDBuilder = SingleStoreUUIDBuilder<{ name: TName; diff --git a/drizzle-orm/src/singlestore-core/columns/vector.ts b/drizzle-orm/src/singlestore-core/columns/vector.ts index 988496a88..95c46976d 100644 --- a/drizzle-orm/src/singlestore-core/columns/vector.ts +++ b/drizzle-orm/src/singlestore-core/columns/vector.ts @@ -1,8 +1,8 @@ -import { ColumnBaseConfig } from '~/column'; -import { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder'; -import { entityKind } from '~/entity'; -import { AnySingleStoreTable } from '~/singlestore-core/table'; -import { SingleStoreColumn, SingleStoreColumnBuilder } from './common'; +import type { ColumnBaseConfig } from '~/column'; +import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder'; +import { entityKind } from '~/entity.ts'; +import type { AnySingleStoreTable } from '~/singlestore-core/table'; +import { SingleStoreColumn, SingleStoreColumnBuilder } from './common.ts'; export type SingleStoreVectorBuilderInitial = SingleStoreVectorBuilder<{ name: TName;