Skip to content

Commit 8837261

Browse files
committed
scala-js: install npm CI action
1 parent 5150edf commit 8837261

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,18 @@ jobs:
6666
os: [ubuntu-latest]
6767
scala: [2.13.8, 2.12.15]
6868
69+
node-version: [16.x]
6970
runs-on: ${{ matrix.os }}
7071
steps:
71-
- name: Checkout current branch (full)
72-
uses: actions/checkout@v2
72+
- uses: actions/checkout@v2
73+
74+
- name: Setup NPM
75+
uses: pnpm/action-setup@v2
7376
with:
74-
fetch-depth: 0
77+
version: 7.21.0
78+
node-version: ${{ matrix.node-version }}
79+
cache: "pnpm"
80+
- run: pnpm install
7581

7682
- name: Setup Java and Scala
7783
uses: olafurpg/setup-scala@v10

build.sbt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,9 @@ lazy val scryptoJS = scrypto.js
7373
),
7474
Test / parallelExecution := false,
7575
// how to setup ScalablyTyped https://youtu.be/hWUAVrNj65c?t=1397
76-
externalNpm := { println(s"baseDirectory: ${baseDirectory.value}"); file(s"${baseDirectory.value}/..") },
76+
externalNpm := { file(s"${baseDirectory.value}/..") },
7777
Compile / npmDependencies ++= Seq(
78-
"@noble/hashes" -> "^1.1.4",
79-
"typescript" -> "^4.9.4"
78+
"@noble/hashes" -> "^1.1.4"
8079
),
8180
useYarn := true
8281
)

0 commit comments

Comments
 (0)