Skip to content

chore(deps): update all devdependencies #98

chore(deps): update all devdependencies

chore(deps): update all devdependencies #98

name: "Copilot Setup Steps"
# Automatically run the setup steps when they are changed to allow for easy validation, and
# allow manual testing through the repository's "Actions" tab
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 it will not be picked up by Copilot.
copilot-setup-steps:
runs-on: ubuntu-latest
# Set the permissions to the lowest permissions possible needed for your steps.
# Copilot will be given its own token for its operations.
permissions:
# If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete.
contents: read
# You can define any steps you want, and they will run before the agent starts.
# If you do not check out your code, Copilot will do this for you.
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: "24.x"
- name: Get upstream skills repository HEAD
id: skills-head
run: |
SKILLS_SHA=$(git ls-remote https://github.com/apollographql/skills.git HEAD | cut -f1)
echo "sha=${SKILLS_SHA}" >> $GITHUB_OUTPUT
echo "Upstream skills repository HEAD: ${SKILLS_SHA}"
- name: Cache downloaded skills and instructions
id: cache-skills
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
with:
path: |
.github/instructions/docs.instructions.md
key: skills-${{ steps.skills-head.outputs.sha }}
restore-keys: |
skills-
- name: Copy Documentation Instructions
if: steps.cache-skills.outputs.cache-hit != 'true'
run: |
echo "Copying documentation instructions from apollographql/skills"
mkdir -p .github/instructions
# Download the docs instructions from the skills repository
curl -fsSL https://raw.githubusercontent.com/apollographql/skills/main/.github/instructions/docs.instructions.md \
-o .github/instructions/docs.instructions.md
echo "Documentation instructions copied to .github/instructions/docs.instructions.md"