Skip to content

Commit a980a4b

Browse files
committed
Install npm dependencies
1 parent 28e2221 commit a980a4b

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ jobs:
6363
- name: Setup Node.js
6464
uses: actions/setup-node@v4
6565

66+
- name: Install npm dependencies
67+
run: npm install
68+
6669
- name: Check that workflows are up to date
6770
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
6871

build.sbt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,15 @@ inThisBuild(Seq(
2929

3030
githubWorkflowArtifactUpload := false,
3131
githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"), JavaSpec.temurin("21"), JavaSpec.temurin("25")),
32-
githubWorkflowBuildPreamble += WorkflowStep.Use(
33-
UseRef.Public("actions", "setup-node", "v4"),
34-
name = Some("Setup Node.js"),
32+
githubWorkflowBuildPreamble ++= Seq(
33+
WorkflowStep.Use(
34+
ref = UseRef.Public("actions", "setup-node", "v4"),
35+
name = Some("Setup Node.js"),
36+
),
37+
WorkflowStep.Run(
38+
commands = List("npm install"),
39+
name = Some("Install npm dependencies")
40+
)
3541
),
3642

3743
githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v"))),

0 commit comments

Comments
 (0)