-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (57 loc) · 1.76 KB
/
argos-ui.yml
File metadata and controls
64 lines (57 loc) · 1.76 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: argos-ui
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ui:
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/argos-ui # your UI folder
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
# Install project deps with the detected package manager
- name: Install deps
run: |
if [ -f pnpm-lock.yaml ]; then
npm i -g pnpm
pnpm i --frozen-lockfile
elif [ -f yarn.lock ]; then
npm i -g yarn
yarn install --frozen-lockfile
elif [ -f package-lock.json ]; then
npm ci --no-audit --no-fund
else
npm install
fi
# Ensure TypeScript + types exist ONLY for this CI run
# (so next/ESLint can type-check; no repo changes are pushed)
- name: Ensure TS types for lint
run: |
if [ -f tsconfig.json ]; then
if [ -f pnpm-lock.yaml ]; then
pnpm add -D typescript @types/react @types/node
elif [ -f yarn.lock ]; then
yarn add -D typescript @types/react @types/node
else
npm i -D --no-save typescript @types/react @types/node
fi
fi
- name: Lint/Test/Build (non-fatal if scripts missing)
run: |
npm run -s lint --if-present
npm run -s test --if-present
npm run -s build --if-present
- name: Upload build (if any)
if: always()
uses: actions/upload-artifact@v4
with:
name: argos-ui-build
path: |
dist
build
if-no-files-found: warn