GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: include current release in the list of released versions · styfle/node@f2ee818

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • linters.yml
  • tools/lint-md
    • list-released-versions-from-changelogs.mjs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/linters.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/linters.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
- name: Get release version numbers
108108
if: ${{ github.event.pull_request && github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch }}
109109
id: get-released-versions
110-
run: ./tools/lint-md/list-released-versions-from-changelogs.mjs
110+
run: ./tools/lint-md/list-released-versions-from-changelogs.mjs >> $GITHUB_OUTPUT
111111
- name: Lint markdown files
112112
run: |
113113
echo "::add-matcher::.github/workflows/remark-lint-problem-matcher.json"
Collapse file

‎tools/lint-md/list-released-versions-from-changelogs.mjs‎

Copy file name to clipboardExpand all lines: tools/lint-md/list-released-versions-from-changelogs.mjs
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ async function getVersionsFromFile(file) {
2020
return;
2121
} else if (toc && line.startsWith('<a')) {
2222
result.push(line.slice(line.indexOf('>') + 1, -'</a><br/>'.length));
23+
} else if (toc && line.startsWith('<b><a')) {
24+
result.push(line.slice(line.indexOf('>', 3) + 1, -'</a></b><br/>'.length));
2325
}
2426
}
2527
}
@@ -30,11 +32,11 @@ const dir = await fs.promises.opendir(dataFolder);
3032
for await (const dirent of dir) {
3133
if (dirent.isFile()) {
3234
filesToCheck.push(
33-
getVersionsFromFile(new URL(`./${dirent.name}`, dataFolder))
35+
getVersionsFromFile(new URL(dirent.name, dataFolder))
3436
);
3537
}
3638
}
3739

3840
await Promise.all(filesToCheck);
3941

40-
console.log(`::set-output name=NODE_RELEASED_VERSIONS::${result.join(',')}`);
42+
console.log(`NODE_RELEASED_VERSIONS=${result.join(',')}`);

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.