-
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (24 loc) · 840 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: build
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
# This step uses the actions/checkout action to download a copy of your repository on the runner.
- name: Checkout repo
uses: actions/checkout@v3
# This step uses the actions/setup-node action to set up a Node.js environment on the runner.
- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
# This step runs npm ci to install any dependencies listed in your package.json file.
- name: Install dependencies
run: npm ci
# This step runs the build script if there is one specified under the scripts key in your package.json file.
- name: Build
run: npm run build --if-present