generated from bitwarden/template
-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (40 loc) · 1.02 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
name: Build API/client files
on:
workflow_dispatch:
pull_request:
branches: [ "main" ]
paths-ignore:
- ".github/workflows/**"
push:
branches: [ "main" ]
paths-ignore:
- ".github/workflows/**"
defaults:
run:
shell: bash
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Node
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
cache: "npm"
cache-dependency-path: "**/package-lock.json"
node-version: "18"
- name: Clean install dependencies and build
run: |
npm ci
npm run build
- name: Upload build as artifact
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: always()
with:
name: build-files
path: |
./api/build
./client/build