Reference

CI/CD workflows

Compare GitHub Actions and GitLab CI syntax for checks, artifacts, permissions and release controls.

Scope and conventions

GitHub Actions (hosted Ubuntu) and GitLab CI. Rows are independent; fragments need the stated placement and prerequisites. npm examples need package-lock.json and a test script. Pins checked 7 November 2026: checkout v7.0.1, setup-node v7.1.0, upload-artifact v7.0.2, download-artifact v8.0.2. Runner, permission and approval requirements are named; review pins for updates.

Release & recovery

Control overlapping runs without assuming FIFO execution

GitHub Actions

A concurrency group restricts overlapping runs/jobs according to Actions semantics. Pending replacement and ordering are not a durable FIFO queue; cancel-in-progress requests cancellation rather than undoing effects.

Fragment

Top-level workflow fragment for superseding checks. Do not copy cancellation policy onto non-idempotent deployments without reviewing effects.

.github/workflows/checks.yml
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
concurrency:
  group: checks-${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

Make a release gate an enforced policy

GitHub Actions

workflow_dispatch allows a manual trigger but is not itself an approval policy. Job environment protection rules and branch restrictions must be configured outside YAML, with feature availability checked for the repository plan.

Fragment

Workflow fragment. This only prints a preflight marker; protection rules must exist on the named environment and no deployment is implemented.

.github/workflows/checks.yml
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
on: workflow_dispatch
jobs:
  release_check:
    runs-on: ubuntu-24.04
    environment: production
    steps:
      - run: printf 'release preflight only\n'

Verify the released artifact and plan state-compatible recovery

GitHub Actions

A green workflow or successful deployment command is not proof of user-facing recovery. Check artifact identity, readiness and the intended operation; rollback must account for database/schema compatibility.

Protocol / decision sketch

Release process sketch. No deployment command or credential is supplied.

.github/workflows/checks.yml
Follow appearance
GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
approved artifact → deploy through owned process
→ observe readiness + user operation
→ recover with compatible code/data plan