-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 838 Bytes
/
ci.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
30
31
32
33
34
35
name: CI
on:
# Runs when a push is done to dev
push:
branches: [master]
# Runs when a PR is created to dev
pull_request:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Use node 20
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install packages
run: npm ci
- name: Check linter
run: npm run lint --workspaces --if-present
- name: Build
run: npm run build --workspaces --if-present