mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
build: make sure to cache bust tsup config changes in all packages
This commit is contained in:
1
.github/workflows/search-indicies.yml
vendored
1
.github/workflows/search-indicies.yml
vendored
@@ -44,5 +44,6 @@ jobs:
|
|||||||
- name: Upload search indicies to meilisearch
|
- name: Upload search indicies to meilisearch
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
||||||
|
SEARCH_API_URL: ${{ secrets.SEARCH_API_URL }}
|
||||||
SEARCH_API_KEY: ${{ secrets.SEARCH_API_KEY }}
|
SEARCH_API_KEY: ${{ secrets.SEARCH_API_KEY }}
|
||||||
uses: ./packages/actions/src/uploadSearchIndicies
|
uses: ./packages/actions/src/uploadSearchIndicies
|
||||||
|
|||||||
@@ -2,15 +2,15 @@ import process from 'node:process';
|
|||||||
import { setFailed } from '@actions/core';
|
import { setFailed } from '@actions/core';
|
||||||
import { generateAllIndices } from '@discordjs/scripts';
|
import { generateAllIndices } from '@discordjs/scripts';
|
||||||
import { connect } from '@planetscale/database';
|
import { connect } from '@planetscale/database';
|
||||||
import MeiliSearch from 'meilisearch';
|
import { MeiliSearch } from 'meilisearch';
|
||||||
import { fetch } from 'undici';
|
import { fetch } from 'undici';
|
||||||
|
|
||||||
if (!process.env.DATABASE_URL) {
|
if (!process.env.DATABASE_URL) {
|
||||||
setFailed('DATABASE_URL is not set');
|
setFailed('DATABASE_URL is not set');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!process.env.SEARCH_API) {
|
if (!process.env.SEARCH_API_URL) {
|
||||||
setFailed('SEARCH_API is not set');
|
setFailed('SEARCH_API_URL is not set');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!process.env.SEARCH_API_KEY) {
|
if (!process.env.SEARCH_API_KEY) {
|
||||||
|
|||||||
@@ -36,7 +36,8 @@
|
|||||||
"package.json",
|
"package.json",
|
||||||
"tsconfig.docs.json",
|
"tsconfig.docs.json",
|
||||||
"tsconfig.eslint.json",
|
"tsconfig.eslint.json",
|
||||||
"tsconfig.json"
|
"tsconfig.json",
|
||||||
|
"tsup.config.ts"
|
||||||
],
|
],
|
||||||
"outputs": ["dist/**/*"],
|
"outputs": ["dist/**/*"],
|
||||||
"outputMode": "errors-only"
|
"outputMode": "errors-only"
|
||||||
@@ -52,7 +53,8 @@
|
|||||||
"src/template/**/*",
|
"src/template/**/*",
|
||||||
"package.json",
|
"package.json",
|
||||||
"tsconfig.eslint.json",
|
"tsconfig.eslint.json",
|
||||||
"tsconfig.json"
|
"tsconfig.json",
|
||||||
|
"tsup.config.ts"
|
||||||
],
|
],
|
||||||
"outputs": ["dist/**/*"],
|
"outputs": ["dist/**/*"],
|
||||||
"outputMode": "errors-only"
|
"outputMode": "errors-only"
|
||||||
@@ -257,6 +259,7 @@
|
|||||||
"package.json",
|
"package.json",
|
||||||
"tsconfig.eslint.json",
|
"tsconfig.eslint.json",
|
||||||
"tsconfig.json",
|
"tsconfig.json",
|
||||||
|
"tsup.config.ts",
|
||||||
"vite.config.ts"
|
"vite.config.ts"
|
||||||
],
|
],
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
@@ -310,6 +313,7 @@
|
|||||||
"package.json",
|
"package.json",
|
||||||
"tsconfig.eslint.json",
|
"tsconfig.eslint.json",
|
||||||
"tsconfig.json",
|
"tsconfig.json",
|
||||||
|
"tsup.config.ts",
|
||||||
"vite.config.ts"
|
"vite.config.ts"
|
||||||
],
|
],
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
|
|||||||
Reference in New Issue
Block a user