11
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2026-04-01 15:26:54 +00:00

chore(deps-dev): bump yaml from 1.10.2 to 2.0.1

Bumps [yaml](https://github.com/eemeli/yaml) from 1.10.2 to 2.0.1.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v1.10.2...v2.0.1)

---
updated-dependencies:
- dependency-name: yaml
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2022-05-01 02:10:27 +00:00 committed by Wagner Santos
parent d608cb14ef
commit f8309eba38
3 changed files with 44 additions and 12 deletions

View file

@ -1,8 +1,6 @@
// eslint-disable-next-line import/no-extraneous-dependencies
const yaml = require('yaml')
yaml.scalarOptions.str.fold.lineWidth = 100
const versionRegex = /\d+\.\d+\.\d+/
module.exports.readVersion = (contents) =>
@ -12,5 +10,7 @@ module.exports.writeVersion = (contents, version) => {
const actionFile = yaml.parse(contents)
actionFile.runs.image = actionFile.runs.image.replace(versionRegex, version)
return yaml.stringify(actionFile)
return yaml.stringify(actionFile, {
lineWidth: 100,
})
}