Skip to content

Add PR checks workflow and update deployment trigger#3

Merged
foreleven merged 4 commits intomainfrom
copilot/add-github-action-checks
Nov 8, 2025
Merged

Add PR checks workflow and update deployment trigger#3
foreleven merged 4 commits intomainfrom
copilot/add-github-action-checks

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 8, 2025

Adds automated validation for pull requests using pnpm build and pnpm lint, and updates the deployment workflow to only run on pushes to main.

Changes

  • New workflow .github/workflows/pr-checks.yml triggered on PRs to main
    • Setup: Node.js 20, pnpm with dependency caching
    • Checks: Runs pnpm build followed by pnpm lint
    • Permissions: Minimal contents: read for GITHUB_TOKEN
  • Modified workflow .github/workflows/deploy.yml
    • Removed pull_request trigger
    • Now only deploys to GitHub Pages on push to main

This ensures pull requests are validated without triggering unnecessary deployment workflows. The deployment workflow follows the same setup pattern for consistency.

Original prompt

Add a github action for pull request to do checking with commands pnpm build and pnpm lint


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Nov 8, 2025
Copilot AI and others added 2 commits November 8, 2025 03:27
Co-authored-by: foreleven <4785594+foreleven@users.noreply.github.com>
Co-authored-by: foreleven <4785594+foreleven@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub Action for pull request checks with pnpm Add PR checks workflow for build and lint validation Nov 8, 2025
Copilot AI requested a review from foreleven November 8, 2025 03:30
@foreleven
Copy link
Copy Markdown
Contributor

@copilot Disable the Git Page action on "pull request"

Co-authored-by: foreleven <4785594+foreleven@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Nov 8, 2025

@copilot Disable the Git Page action on "pull request"

Done. The GitHub Pages deployment workflow now only triggers on push to main. Pull requests will use the new pr-checks workflow instead. (commit 1d6c895)

Copilot AI changed the title Add PR checks workflow for build and lint validation Add PR checks workflow and update deployment trigger Nov 8, 2025
Copilot AI requested a review from foreleven November 8, 2025 04:10
@foreleven foreleven marked this pull request as ready for review November 8, 2025 04:20
@foreleven foreleven merged commit 4186a42 into main Nov 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants