Skip to content

Commit

Permalink
chore(ai-help): remove old index script (#10484)
Browse files Browse the repository at this point in the history
It is no longer used and caused a stage build to fail.
  • Loading branch information
caugner authored Feb 8, 2024
1 parent 1140572 commit bacf525
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 434 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/prod-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -372,14 +372,6 @@ jobs:
wait $pid
done
- name: Update AI Help index
run: yarn ai-help update-index
env:
CONTENT_ROOT: ${{ github.workspace }}/mdn/content/files
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}

- name: Update AI Help index with macros
run: yarn ai-help-macros update-index
env:
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/stage-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -365,14 +365,6 @@ jobs:
wait $pid
done
- name: Update AI Help index
run: yarn ai-help update-index
env:
CONTENT_ROOT: ${{ github.workspace }}/mdn/content/files
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}

- name: Update AI Help index with macros
run: yarn ai-help-macros update-index
env:
Expand Down
2 changes: 0 additions & 2 deletions libs/env/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,4 @@ export const FAKE_V1_API: boolean;
export const SENTRY_DSN_BUILD: string;
export const OPENAI_KEY: string;
export const PG_URI: string;
export const SUPABASE_URL: string;
export const SUPABASE_SERVICE_ROLE_KEY: string;
export const SAMPLE_SIGN_KEY: Buffer;
3 changes: 0 additions & 3 deletions libs/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ export const FAKE_V1_API = JSON.parse(process.env.SERVER_FAKE_V1_API || false);

export const OPENAI_KEY = process.env.OPENAI_KEY || "";
export const PG_URI = process.env.PG_URI || "";
export const SUPABASE_URL = process.env.SUPABASE_URL || "";
export const SUPABASE_SERVICE_ROLE_KEY =
process.env.SUPABASE_SERVICE_ROLE_KEY || "";

export const SAMPLE_SIGN_KEY = process.env.BUILD_SAMPLE_SIGN_KEY
? Buffer.from(process.env.BUILD_SAMPLE_SIGN_KEY, "base64")
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"yari-tool": "tool/cli.js"
},
"scripts": {
"ai-help": "ts-node scripts/ai-help.ts",
"ai-help-macros": "ts-node scripts/ai-help-macros.ts",
"analyze": "source-map-explorer 'client/build/static/js/*.js'",
"analyze:css": "source-map-explorer 'client/build/static/css/*.css'",
Expand Down Expand Up @@ -157,7 +156,6 @@
"@mdn/minimalist": "^2.0.4",
"@playwright/test": "^1.41.2",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
"@supabase/supabase-js": "^2.39.3",
"@svgr/webpack": "^8.1.0",
"@swc/core": "^1.4.0",
"@testing-library/react": "^14.2.1",
Expand Down
Loading

0 comments on commit bacf525

Please sign in to comment.