@bitrise/yml-helper
v1.0.2
Published
Helper for parsing Bitrise apps' bitrise.yml
Downloads
6
Keywords
Readme
yml-helper
NPM package for parsing Bitrise apps' bitrise.yml
Example code
import { StepSourceService, App } from 'yml-helper';
const bitriseYml = `
format_version: '6'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: other
trigger_map: []
workflows:
workflow-test:
steps:
- [email protected]: {}
- [email protected]: {}
workflow-test-old:
steps:
- [email protected]: {}
- [email protected]: {}
`;
const stepSourceService = new StepSourceService();
stepSourceService.loadDefaultLibrary().then(() => {
const app = new App(bitriseYml, stepSourceService);
app.workflows.forEach(workflow => {
workflow.steps.forEach(step => {
console.log(stepSourceService.isStepAtLeastOnVersion(step, '1.1.4'));
});
});
});