devhelmhq/setup-devhelm GitHub Action installs the DevHelm CLI and configures authentication in your CI pipeline. Use it to validate, plan, and deploy your monitoring configuration on every push.
Quick start
Action inputs
| Input | Required | Default | Description |
|---|---|---|---|
api-token | No | — | DevHelm API token (recommended: pass via secrets.DEVHELM_API_TOKEN) |
devhelm-version | No | latest | CLI version to install — exact semver (e.g., 0.1.4) or latest |
api-url | No | https://api.devhelm.io | DevHelm API base URL |
org-id | No | — | Organization ID for multi-org accounts |
verify-connection | No | false | Run devhelm auth me after setup to verify credentials |
node-version | No | 20 | Node.js version if actions/setup-node wasn’t called before |
Action outputs
| Output | Description |
|---|---|
devhelm-version | Installed CLI version (e.g., 0.1.4) |
cache-hit | Whether the npm cache was restored |
PR preview workflow
Show what would change before merging:Gate merges with dry-run
Use--dry-run --detailed-exitcode as a required status check:
| Exit code | Meaning |
|---|---|
0 | No changes needed |
10 | Changes pending (valid config, would apply changes) |
1 | Error (invalid config or API failure) |
Pin the CLI version
For reproducible builds, pin the CLI version:Multi-environment deploys
Use GitHub Environments with environment-specific secrets:Maintenance windows in CI
Suppress alerts during deployments:Troubleshooting
Action fails with 'Node.js is required'
Action fails with 'Node.js is required'
The action auto-installs Node.js 20 by default. If you’ve set
node-version: '' to skip auto-setup, make sure actions/setup-node runs before setup-devhelm.Deploy fails with 'lock held'
Deploy fails with 'lock held'
Another deploy is running. Deploy locks prevent concurrent deploys per organization. Wait or force unlock:
api-token not working
api-token not working
Verify the secret is set at the repository level (Settings → Secrets and variables → Actions). Environment-level secrets need the
environment: key in the job.Next steps
Generic CI/CD
Use the CLI in non-GitHub CI systems.
Monitoring as Code tutorial
Full YAML format and deploy workflow.
CI/CD pipeline guide
End-to-end CI/CD setup guide.