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
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/linters.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -107,7 +107,7 @@ jobs: |
107 | 107 | - name: Get release version numbers |
108 | 108 | if: ${{ github.event.pull_request && github.event.pull_request.base.ref == github.event.pull_request.base.repo.default_branch }} |
109 | 109 | 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 |
111 | 111 | - name: Lint markdown files |
112 | 112 | run: | |
113 | 113 | echo "::add-matcher::.github/workflows/remark-lint-problem-matcher.json" |
|
Collapse file
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 number | Diff line number | Diff line change |
|---|
@@ -20,6 +20,8 @@ async function getVersionsFromFile(file) { |
20 | 20 | return; |
21 | 21 | } else if (toc && line.startsWith('<a')) { |
22 | 22 | 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)); |
23 | 25 | } |
24 | 26 | } |
25 | 27 | } |
@@ -30,11 +32,11 @@ const dir = await fs.promises.opendir(dataFolder); |
30 | 32 | for await (const dirent of dir) { |
31 | 33 | if (dirent.isFile()) { |
32 | 34 | filesToCheck.push( |
33 | | - getVersionsFromFile(new URL(`./${dirent.name}`, dataFolder)) |
| 35 | + getVersionsFromFile(new URL(dirent.name, dataFolder)) |
34 | 36 | ); |
35 | 37 | } |
36 | 38 | } |
37 | 39 |
|
38 | 40 | await Promise.all(filesToCheck); |
39 | 41 |
|
40 | | -console.log(`::set-output name=NODE_RELEASED_VERSIONS::${result.join(',')}`); |
| 42 | +console.log(`NODE_RELEASED_VERSIONS=${result.join(',')}`); |