Skip to content

Commit

Permalink
chore: fix supported versions automation (electron#31602)
Browse files Browse the repository at this point in the history
  • Loading branch information
VerteDinde authored Oct 27, 2021
1 parent 771a8f7 commit 0f0ed59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/tutorial/support.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ until the maintainers feel the maintenance burden is too high to continue doing
* 17.x.y
* 16.x.y
* 15.x.y
* 13
* 14.x.y

### End-of-life

Expand Down
2 changes: 1 addition & 1 deletion script/release/version-bumper.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ async function updateWinRC (components) {
// updates support.md file with new semver values (stable only)
async function updateSupported (version, filePath) {
const v = parseInt(version);
const newVersions = [`* ${v}.x.y`, `* ${v - 1}.x.y`, `* ${v - 2}.x.y`, `* ${v - 3}`];
const newVersions = [`* ${v}.x.y`, `* ${v - 1}.x.y`, `* ${v - 2}.x.y`, `* ${v - 3}.x.y`];
const contents = await readFile(filePath, 'utf8');
const previousVersions = contents.split('\n').filter((elem) => {
return (/[^\n]*\.x\.y[^\n]*/).test(elem);
Expand Down

0 comments on commit 0f0ed59

Please sign in to comment.