Skip to content

Commit c81cc61

Browse files
authored
Correct npm installation in GitHub actions
1 parent a00fd7d commit c81cc61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/js_test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on: [push]
44

55
jobs:
66
build:
7+
78
runs-on: ubuntu-latest
89

910
strategy:
@@ -16,8 +17,10 @@ jobs:
1617
uses: actions/setup-node@v1
1718
with:
1819
node-version: ${{ matrix.node-version }}
19-
- name: npm test
20+
- name: npm install, build, and test
2021
run: |
22+
npm ci
23+
npm run build --if-present
2124
npm test
2225
env:
2326
CI: true

0 commit comments

Comments
 (0)