Skip to content

Commit d1197dd

Browse files
author
Willem (W.F.) Veelenturf
committed
ci: build npm package
1 parent 4e46486 commit d1197dd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/gcp.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,25 @@ jobs:
2828
with:
2929
java-version: 1.8
3030

31+
- uses: actions/setup-node@v1
32+
with:
33+
node-version: '12'
34+
3135
- uses: actions/cache@v2
3236
with:
3337
path: ~/.m2/repository
3438
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3539
restore-keys: |
3640
${{ runner.os }}-maven-
3741
42+
- uses: actions/cache@v2
43+
with:
44+
path: ~/.npm
45+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
46+
restore-keys: ${{ runner.os }}-node-
47+
48+
- run: npm ci
49+
- run: npm run build
50+
3851
- name: Build and Deploy
3952
run: mvn -B compile jib:build --file pom.xml

0 commit comments

Comments
 (0)