Skip to content

Commit dd17d1b

Browse files
committed
ci(copilot): add workflow for Copilot setup steps
1 parent fc2a0fc commit dd17d1b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

0 commit comments

Comments
 (0)