Skip to content

Commit dda23c7

Browse files
committed
Write .nvmrc file in build.mjs
1 parent 5fb81ae commit dda23c7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

build.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ const checkNodeVersionsPlugin = {
8181
`More than one node version used in 'action.yml' files: ${JSON.stringify(nodeVersions)}`,
8282
);
8383
}
84+
85+
// Write the node version to `.nvmrc`.
86+
writeFile(
87+
join(__dirname, ".nvmrc"),
88+
nodeVersion.substring("node".length) + "\n",
89+
"utf-8",
90+
);
8491
});
8592
},
8693
};

0 commit comments

Comments
 (0)