.github/workflow-templates/ci-node.yml

22 lines
784 B
YAML

name: CI (Node / TypeScript)
on:
pull_request:
branches: [main]
merge_group:
jobs:
select-runner:
# Picks GitHub-hosted while Actions is operational, the org self-hosted
# runner otherwise. See callable-select-runner.yaml for the policy.
uses: Sea-Haven-Industries/.github/.github/workflows/callable-select-runner.yaml@REPLACE-ME # vX.Y.Z
permissions:
actions: read
ci:
needs: select-runner
uses: Sea-Haven-Industries/.github/.github/workflows/ci-typescript-cdk.yaml@REPLACE-ME # vX.Y.Z
with:
runner: ${{ needs.select-runner.outputs.runner }}
# Matches local dev (Node 24 / npm 11, lockfileVersion 3). This is also the
# reusable workflow's default — passed explicitly to pin against drift.
node-version: "24"