[GitHub Actions] Set a job timeout in minutes

Created on November 30, 2026

Use timeout-minutes in a job or step definition to set its maximum running time. This workflow checks the Node.js version, with a five-minute limit for the job.

name: Check Node.js
on: [push]
jobs:
  check-node:
    runs-on: ubuntu-latest
    timeout-minutes: 5
    steps:
      - run: node --version
GitHub Actions