Skip to content

Consider scaffolding Copilot Setup Steps (.github/workflows/copilot-setup-steps.yml) #1336

@dtinth

Description

@dtinth

Description

As a developer using Vite+, I want to be able to immediately assign GitHub Copilot Coding Agent to work on a Vite+ project.

Currently, when GitHub Copilot Coding Agent tries to work on the freshly-created project, it will not be able to run vp command directly. It will not be able to install vp either due to firewall. Eventually it will figure out how to install Vite+ through pnpm, but this led it to run corepack pnpm exec vp run website#build instead of vp run website#build. Having figured this out the hard way, it remembers in the memory that Vite+ should be run through corepack pnpm exec vp.

Suggested solution

Generated project should include .github/workflows/copilot-setup-steps.yml file.

name: "Copilot Setup Steps"
on:
  workflow_dispatch:
  push:
    paths:
      - .github/workflows/copilot-setup-steps.yml
  pull_request:
    paths:
      - .github/workflows/copilot-setup-steps.yml
jobs:
  copilot-setup-steps:
    runs-on: ubuntu-latest
    permissions:
      contents: read
    steps:
      - name: Checkout code
        uses: actions/checkout@v6
      - name: Set up Vite+
        uses: voidzero-dev/setup-vp@v1

Alternative

Manually create the .github/workflows/copilot-setup-steps.yml file with the above contents.

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.

Metadata

Metadata

Assignees

No one assigned

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions