build: make sure to cache bust tsup config changes in all packages

This commit is contained in:
iCrawl
2023-11-07 16:41:15 +01:00
parent c39c94374a
commit 6a6c4bdcae
3 changed files with 10 additions and 5 deletions

View File

@@ -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

View File

@@ -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) {

View File

@@ -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": [],