-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (36 loc) · 1.05 KB
/
build-code.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
# This is the workflow to lint the source code
name: Build
# Controls when the action will run.
on:
# Allows you to call this workflow from other workflows
workflow_call:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: '🛠️ Build'
runs-on: ubuntu-latest
steps:
- name: '☁️ Checkout repository'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: '⚙️ Use Node.js'
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
check-latest: true
cache: 'npm'
- name: '⛓️ Install dependencies'
env:
HUSKY: 0
run: npm ci --no-audit --prefer-offline --progress=false
- name: '🛠️ Build'
run: npm run build --if-present
# - name: '📎 Upload build output'
# uses: actions/upload-artifact@v3
# with:
# name: build
# path: |
# dist/
# retention-days: 1