File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ # https://docs.github.com/en/enterprise-cloud@latest/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment
2+ # The copilot-setup-steps.yml workflow won't trigger unless it's present on your main branch.
3+ name : " Copilot Setup Steps"
4+
5+ # Automatically run the setup steps when they are changed to allow for easy validation, and
6+ # allow manual testing through the repository's "Actions" tab
7+ on :
8+ workflow_dispatch :
9+ push :
10+ paths :
11+ - .github/workflows/copilot-setup-steps.yml
12+ pull_request :
13+ paths :
14+ - .github/workflows/copilot-setup-steps.yml
15+
16+ jobs :
17+ # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
18+ copilot-setup-steps :
19+ runs-on : ubuntu-latest
20+
21+ permissions :
22+ contents : read
23+
24+ # You can define any steps you want, and they will run before the agent starts.
25+ steps :
26+ - name : Checkout code
27+ uses : actions/checkout@v4
28+
29+ - name : Setup Node and NPM Cache
30+ uses : actions/setup-node@v4
31+ with :
32+ node-version-file : .nvmrc
33+ cache : ' npm'
34+
35+ - name : GitHub registry Auth & Install Dependencies
36+ run : npm ci
You can’t perform that action at this time.
0 commit comments