ci: Auto generate plugin json

This commit is contained in:
Vendicated 2023-03-23 04:37:32 +01:00
parent d0b3678ad6
commit 1368c25824
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
8 changed files with 497 additions and 78 deletions

View file

@ -37,6 +37,9 @@ jobs:
- name: Build
run: pnpm build --standalone
- name: Generate plugin list
run: pnpm generatePluginJson dist/plugins.json
- name: Clean up obsolete files
run: |
rm -rf dist/extension* Vencord.user.css

View file

@ -36,7 +36,7 @@ jobs:
export PATH="$PWD/node_modules/.bin:$PATH"
export CHROMIUM_BIN=$(which chromium-browser)
esbuild test/generateReport.ts > dist/report.mjs
esbuild scripts/generateReport.ts > dist/report.mjs
node dist/report.mjs >> $GITHUB_STEP_SUMMARY
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}