forked from Vendicated/Vencord
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
84 changed files
with
1,843 additions
and
1,032 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Release Browser Extension | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
Publish: | ||
if: github.repository == 'Vendicated/Vencord' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: check that tag matches package.json version | ||
run: | | ||
pkg_version="v$(jq -r .version < package.json)" | ||
if [[ "${{ github.ref_name }}" != "$pkg_version" ]]; then | ||
echo "Tag ${{ github.ref_name }} does not match package.json version $pkg_version" >&2 | ||
exit 1 | ||
fi | ||
- uses: pnpm/action-setup@v3 # Install pnpm using packageManager key in package.json | ||
|
||
- name: Use Node.js 19 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "pnpm" | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Build web | ||
run: pnpm buildWebStandalone | ||
|
||
- name: Publish extension | ||
run: | | ||
cd dist/chromium-unpacked | ||
pnpx chrome-webstore-upload-cli@2.1.0 upload --auto-publish | ||
env: | ||
EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID }} | ||
CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }} | ||
CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} | ||
REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Test Patches | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# Every day at midnight | ||
- cron: 0 0 * * * | ||
|
||
jobs: | ||
TestPlugins: | ||
if: github.repository == 'Vendicated/Vencord' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
if: ${{ github.event_name == 'schedule' }} | ||
with: | ||
ref: dev | ||
|
||
- uses: actions/checkout@v4 | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
|
||
- uses: pnpm/action-setup@v3 # Install pnpm using packageManager key in package.json | ||
|
||
- name: Use Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "pnpm" | ||
|
||
- name: Install dependencies | ||
run: | | ||
pnpm install --frozen-lockfile | ||
- name: Install Google Chrome | ||
id: setup-chrome | ||
uses: browser-actions/setup-chrome@82b9ce628cc5595478a9ebadc480958a36457dc2 | ||
with: | ||
chrome-version: stable | ||
|
||
- name: Build Vencord Reporter Version | ||
run: pnpm buildReporter | ||
|
||
- name: Create Report | ||
timeout-minutes: 10 | ||
run: | | ||
export PATH="$PWD/node_modules/.bin:$PATH" | ||
export CHROMIUM_BIN=${{ steps.setup-chrome.outputs.chrome-path }} | ||
esbuild scripts/generateReport.ts > dist/report.mjs | ||
node dist/report.mjs >> $GITHUB_STEP_SUMMARY | ||
env: | ||
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
- name: Create Report (Canary) | ||
timeout-minutes: 10 | ||
if: success() || failure() # even run if previous one failed | ||
run: | | ||
export PATH="$PWD/node_modules/.bin:$PATH" | ||
export CHROMIUM_BIN=${{ steps.setup-chrome.outputs.chrome-path }} | ||
export USE_CANARY=true | ||
esbuild scripts/generateReport.ts > dist/report.mjs | ||
node dist/report.mjs >> $GITHUB_STEP_SUMMARY | ||
env: | ||
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.