You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✨ Add VIZZLY_BUILD_NAME environment variable support (#195)
## Summary
- Add `VIZZLY_BUILD_NAME` environment variable for setting build names
in CI without CLI flags
- Makes CI configuration cleaner - no need to interpolate values in CLI
args
## Changes
- Add `getBuildName()` function to `environment-config.js`
- Wire into `config-loader.js` to set `config.build.name` from
environment
- Add tests for new functionality
- Update CLAUDE.md documentation
## Usage
```bash
# Instead of
vizzly run "npm test" --build-name "PR #${PR_NUMBER} - ${BRANCH_NAME}"
# You can now use
export VIZZLY_BUILD_NAME="PR #${PR_NUMBER} - ${BRANCH_NAME}"
vizzly run "npm test"
```
## Test plan
- [x] Unit tests pass for environment-config.js
- [x] Unit tests pass for config-loader.js
- [x] Lint passes
0 commit comments