YAML
YAML is a readable format for configuration files, and I use it for GitHub Actions automation, Docker Compose and deployment services.
How I use YAML
Structure comes from indentation instead of brackets, and comments are allowed.
When checks and deployment are written in a YAML file, every code change goes through the same steps automatically: type checks, tests and publishing. For you, that means less manual work and fewer deployment mistakes, and the settings stay versioned with the project, so you can see what changed and when.
When I write it, I watch the indentation, since one extra space changes the meaning of the file, and I never put secret keys in the file; they go into GitHub secrets. I don't write YAML as a standalone project but as part of the setup around a larger job, so I count it as a supporting tool.
With Git & GitHub I use it for automatic checks on every change, and with Docker to describe services that run together. For settings that programs read, like package.json, JSON stays the format.
Frequently asked questions about YAML
What is a YAML file?
YAML is a text format for configuration where structure is set by indentation, without brackets or quotes where they aren't needed. GitHub Actions, Docker Compose, Kubernetes and many deployment services use it.
What's the difference between YAML and JSON?
YAML is easier for people to read and supports comments, while JSON is stricter and more common for data exchange between programs. That's why YAML is usually chosen for configuration people edit, and JSON for API responses and settings programs read.
Do you set up GitHub Actions for automatic checks and deployment?
Yes, when a project calls for it, I write YAML workflow files that check the code on every change and handle publishing. I do it as part of a larger job alongside Git & GitHub, not as a separate service.
More skills in the same area
- SEO
- Multilingual Websites
- Web Security
- Online Payments
- SEF e-Invoicing
- PDF & Excel Reports
- Git & GitHub
- Cloudinary
- Laser Files (DXF/SVG)
- JSON