diff --git a/.github/workflows/build-verification.yaml b/.github/workflows/build-verification.yaml new file mode 100644 index 0000000..dff67c8 --- /dev/null +++ b/.github/workflows/build-verification.yaml @@ -0,0 +1,59 @@ +name: Build Verification + +on: + pull_request: + branches: ["main"] + paths: + - "**/*.ts" + - "**/*.tsx" + - "**/*.css" + - "**/*.vue" + - "**/*.json" + - "package.json" + - "pnpm-lock.yaml" + - "**/package.json" + push: + branches: ["main"] + paths: + - "**/*.ts" + - "**/*.tsx" + - "**/*.css" + - "**/*.vue" + - "**/*.json" + - "package.json" + - "pnpm-lock.yaml" + - "**/package.json" + +jobs: + build: + name: Build Check + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 + + - name: Setup Node.js + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 #v4.4.0 + with: + node-version: 20 + cache: "pnpm" + + - name: Setup pnpm + uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda #v4.1.0 + with: + version: 9 + run_install: false + + - name: Install dependencies + run: pnpm install + + - name: Run build + run: pnpm build + + - name: Verify build artifacts + run: | + if [ ! -f "dist/plugin_package.zip" ]; then + echo "Build failed: plugin_package.zip not found" + exit 1 + fi diff --git a/.github/workflows/sync-labels.yaml b/.github/workflows/sync-labels.yaml index 05b69a6..9b6ba45 100644 --- a/.github/workflows/sync-labels.yaml +++ b/.github/workflows/sync-labels.yaml @@ -1,5 +1,5 @@ --- -name: "Meta Sync labels" +name: "Sync labels" on: workflow_dispatch: push: