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.
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.
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_dispatchjobs: release_check: runs-on: ubuntu-24.04 environment: production steps: - run: printf 'release preflight only\n'
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