adapt jenkins.js
This commit is contained in:
parent
2de59f017a
commit
a02dd372b9
@ -1,6 +1,5 @@
|
|||||||
/* eslint-disable no-process-exit */
|
/* eslint-disable */
|
||||||
/* eslint-disable no-console */
|
|
||||||
/* eslint-disable no-sync */
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const fs = require ('fs');
|
const fs = require ('fs');
|
||||||
@ -32,7 +31,6 @@ function major (version) {
|
|||||||
|
|
||||||
if (fs.existsSync ('README.md')) {
|
if (fs.existsSync ('README.md')) {
|
||||||
const readme = fs.readFileSync ('README.md', 'utf-8');
|
const readme = fs.readFileSync ('README.md', 'utf-8');
|
||||||
// eslint-disable-next-line prefer-named-capture-group
|
|
||||||
const version = (/version: ([0-9.]+)/ui).exec (readme);
|
const version = (/version: ([0-9.]+)/ui).exec (readme);
|
||||||
if (
|
if (
|
||||||
version === null
|
version === null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user