diff --git a/.github/workflows/release-to-github.yaml b/.github/workflows/release-to-github.yaml index 7e4419fec..549832f1b 100644 --- a/.github/workflows/release-to-github.yaml +++ b/.github/workflows/release-to-github.yaml @@ -110,6 +110,7 @@ jobs: 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 +138,7 @@ jobs: npm run pack - name: Run @arethetypeswrong/cli + if: 0 working-directory: ${{ matrix.package }} shell: bash env: @@ -148,9 +150,15 @@ 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 + + cat .npmrc + + jq '.name="@singlestore-labs/drizzle-orm"' package.json --tab > tmp.$$.json && mv tmp.$$.json package.json 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;