Skip to content

Commit 4602438

Browse files
authored
Merge pull request #59 from shiftcode/#56-copilot-setup-steps
ci(copilot): add workflow for Copilot setup steps
2 parents 9d49159 + ec6b426 commit 4602438

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
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

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "independent",
44
"command": {
55
"version": {
6-
"allowBranch": "*",
6+
"allowBranch": "**/*",
77
"message": "build(release): next version [skip_build]"
88
},
99
"publish": {

0 commit comments

Comments
 (0)