Skip to content

Commit d05a1a2

Browse files
committed
Tighten dev.yml node version parse to the node block's child line
1 parent 3f38fd6 commit d05a1a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/check-ci-gates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const pick = (source, regex, label) => {
4545
}
4646

4747
const ciNode = pick(workflow, /DEFAULT_NODE_VERSION:\s*'([^']+)'/, 'DEFAULT_NODE_VERSION in tests-pr.yml')
48-
const devNode = pick(devYml, /node:[\s\S]*?version:\s*([0-9][\w.-]*)/, 'node version in dev.yml')
48+
const devNode = pick(devYml, /node:\s*\n\s+version:\s*([0-9][\w.-]*)/, 'node version in dev.yml')
4949
const ciPnpm = pick(workflow, /PNPM_VERSION:\s*'([^']+)'/, 'PNPM_VERSION in tests-pr.yml')
5050
const devPnpm = pick(devYml, /package_manager:\s*pnpm@([0-9][\w.-]*)/, 'pnpm version in dev.yml')
5151

0 commit comments

Comments
 (0)