From 6a6c4bdcaeef6f789a4f75754cb724add4b93e50 Mon Sep 17 00:00:00 2001 From: iCrawl Date: Tue, 7 Nov 2023 16:41:15 +0100 Subject: [PATCH] build: make sure to cache bust tsup config changes in all packages --- .github/workflows/search-indicies.yml | 1 + packages/actions/src/uploadSearchIndicies/index.ts | 6 +++--- turbo.json | 8 ++++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/search-indicies.yml b/.github/workflows/search-indicies.yml index f5471b445..2dd1dd07a 100644 --- a/.github/workflows/search-indicies.yml +++ b/.github/workflows/search-indicies.yml @@ -44,5 +44,6 @@ jobs: - name: Upload search indicies to meilisearch env: DATABASE_URL: ${{ secrets.DATABASE_URL }} + SEARCH_API_URL: ${{ secrets.SEARCH_API_URL }} SEARCH_API_KEY: ${{ secrets.SEARCH_API_KEY }} uses: ./packages/actions/src/uploadSearchIndicies diff --git a/packages/actions/src/uploadSearchIndicies/index.ts b/packages/actions/src/uploadSearchIndicies/index.ts index 369f2b0bd..71e81b761 100644 --- a/packages/actions/src/uploadSearchIndicies/index.ts +++ b/packages/actions/src/uploadSearchIndicies/index.ts @@ -2,15 +2,15 @@ import process from 'node:process'; import { setFailed } from '@actions/core'; import { generateAllIndices } from '@discordjs/scripts'; import { connect } from '@planetscale/database'; -import MeiliSearch from 'meilisearch'; +import { MeiliSearch } from 'meilisearch'; import { fetch } from 'undici'; if (!process.env.DATABASE_URL) { setFailed('DATABASE_URL is not set'); } -if (!process.env.SEARCH_API) { - setFailed('SEARCH_API is not set'); +if (!process.env.SEARCH_API_URL) { + setFailed('SEARCH_API_URL is not set'); } if (!process.env.SEARCH_API_KEY) { diff --git a/turbo.json b/turbo.json index 7c4e94939..b790c2572 100644 --- a/turbo.json +++ b/turbo.json @@ -36,7 +36,8 @@ "package.json", "tsconfig.docs.json", "tsconfig.eslint.json", - "tsconfig.json" + "tsconfig.json", + "tsup.config.ts" ], "outputs": ["dist/**/*"], "outputMode": "errors-only" @@ -52,7 +53,8 @@ "src/template/**/*", "package.json", "tsconfig.eslint.json", - "tsconfig.json" + "tsconfig.json", + "tsup.config.ts" ], "outputs": ["dist/**/*"], "outputMode": "errors-only" @@ -257,6 +259,7 @@ "package.json", "tsconfig.eslint.json", "tsconfig.json", + "tsup.config.ts", "vite.config.ts" ], "outputs": [], @@ -310,6 +313,7 @@ "package.json", "tsconfig.eslint.json", "tsconfig.json", + "tsup.config.ts", "vite.config.ts" ], "outputs": [],