Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Commit 555426e

Browse files
authored
Create node.js.yml
1 parent e8e9364 commit 555426e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [10.x, 12.x, 14.x]
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- run: yarn
25+
-
26+
id: yarn_build
27+
name: build
28+
run: yarn run build
29+
-
30+
name: Print digest
31+
run: echo ${{ steps.yarn_build.outputs.digest }}

0 commit comments

Comments
 (0)