From e1233c5d9cbfac9b2b4592853f43e25e62f9271e Mon Sep 17 00:00:00 2001 From: Nate W Date: Fri, 14 Aug 2026 13:58:45 -0700 Subject: [PATCH] Add Copilot cloud agent environment setup workflow Assisted-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Nate W --- .github/workflows/copilot-setup-steps.yml | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/copilot-setup-steps.yml diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml new file mode 100644 index 0000000..ccd3ea3 --- /dev/null +++ b/.github/workflows/copilot-setup-steps.yml @@ -0,0 +1,26 @@ +# Prepares the Copilot cloud agent's ephemeral environment before the +# model starts: Node from .nvmrc, npm cache, npm ci. Runs on changes to +# itself so pull requests validate it; takes effect for agent sessions +# once merged to the default branch. + +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: + # The job must be called copilot-setup-steps or the agent ignores it. + copilot-setup-steps: + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + contents: read + steps: + - uses: actions/checkout@v6 + - uses: ./.github/actions/npm-ci-via-cached-nvmrc