Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 32 additions & 16 deletions .github/workflows/premerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "premerge"
on: [push]

jobs:
build:
plugin:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -19,21 +19,6 @@ jobs:
run: npm run check
working-directory: ./plugin

- name: Generate files
run: npm run gen
working-directory: ./scripts

- name: Check for generated file changes
run: |
git add -A
if git diff --staged --quiet; then
echo "✅ No changes detected in generated files"
else
echo "❌ Generated files have changed. Please commit these changes:"
git diff --staged
exit 1
fi

- name: Build
run: VITE_BUNDLE_ANALYZER_MODE=static npm run build
working-directory: ./plugin
Expand All @@ -59,3 +44,34 @@ jobs:
- name: Build
run: npm run build
working-directory: ./docs
scripts:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup

- name: Typecheck
run: npm run check
working-directory: ./scripts

- name: Lint
run: npm run lint:check
working-directory: ./scripts

- name: Generate files
run: npm run gen
working-directory: ./scripts

- name: Check for generated file changes
run: |
git add -A
if git diff --staged --quiet; then
echo "✅ No changes detected in generated files"
else
echo "❌ Generated files have changed. Please commit these changes:"
git diff --staged
exit 1
fi