Interview Prep/GitHub Actions/Custom Actions & Reusable Workflows

What does `action.yml` contain for a JavaScript action?

IntermediateConceptCustom Actions & Reusable Workflows
Answer
name: PR size labeler
description: Labels PRs by changed lines
inputs:
  token:
    description: GitHub token
    default: ${{ github.token }}
outputs:
  size:
    description: xs, s, m, l, xl
runs:
  using: node24
  main: dist/index.js
  post: dist/cleanup.js     # optional
branding:
  icon: tag
  color: blue

node24 is the current runtime; node20 actions are being phased out and older node12/node16 actions are forced onto newer Node with warnings.

All GitHub Actions questions Roadmap: GitHub Actions

More on Custom Actions & Reusable Workflows