forked from matter-labs/dapp-portal
-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (30 loc) · 853 Bytes
/
ci.yaml
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
name: CI
on:
pull_request:
branches:
- main
- preview
- dev
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Run npm install
run: npm ci
- name: Run Build Command
run: |
if [[ ${{ github.event.pull_request.base.ref }} == 'main' ]]; then
npm run generate:node:nexus
elif [[ ${{ github.event.pull_request.base.ref }} == 'preview' ]]; then
npm run generate:node:nexus
elif [[ ${{ github.event.pull_request.base.ref }} == 'dev' ]]; then
npm run generate:node:nexus-sepolia
else
echo "No specific build command for this branch."
fi