@@ -27,7 +27,7 @@ protected override GitHubActionsJob GetJobs(GitHubActionsImage image, IReadOnlyC
2727 var job = base . GetJobs ( image , relevantTargets ) ;
2828 GitHubActionsStep [ ] backendSteps = AddGithubActions . Any ( act => act == GithubAction . Backend_Artifact ) ?
2929 [ new GitHubActionSetupDotnet ( "8.0.x" ) , new GitHubActionSetupDotnet ( "10.0.x" ) , ] : [ ] ;
30- GitHubActionsStep [ ] setupSteps = [ .. backendSteps , new GitHubActionSetupJava25 ( ) , .. job . Steps ] ;
30+ GitHubActionsStep [ ] setupSteps = [ .. backendSteps , new GitHubActionSetupNode ( ) , new GitHubActionSetupJava25 ( ) , .. job . Steps ] ;
3131 var newSteps = new List < GitHubActionsStep > ( setupSteps ) ;
3232
3333 foreach ( var act in AddGithubActions )
@@ -81,6 +81,29 @@ public override void Write(CustomFileWriter writer)
8181 }
8282}
8383
84+ /// <summary>
85+ /// using: https://github.com/actions/setup-node
86+ /// </summary>
87+ class GitHubActionSetupNode : GitHubActionsStep
88+ {
89+ public override void Write ( CustomFileWriter writer )
90+ {
91+ writer . WriteLine ( ) ; // empty line to separate tasks
92+
93+ writer . WriteLine ( "- uses: actions/setup-node@v6" ) ;
94+
95+ using ( writer . Indent ( ) )
96+ {
97+ writer . WriteLine ( "with:" ) ;
98+
99+ using ( writer . Indent ( ) )
100+ {
101+ writer . WriteLine ( $ "node-version: '24.x'") ;
102+ }
103+ }
104+ }
105+ }
106+
84107class GitHubActionSetupDotnet ( string dotnetV ) : GitHubActionsStep
85108{
86109 public override void Write ( CustomFileWriter writer )
0 commit comments