-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (44 loc) · 1.02 KB
/
lint-web.yml
File metadata and controls
47 lines (44 loc) · 1.02 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
name: Lint frontend
on:
push:
branches:
- main
- dev
- 'release/**'
paths-ignore:
- "*.md"
- "LICENSE"
pull_request:
branches:
- main
- dev
- 'release/**'
paths-ignore:
- "*.md"
- "LICENSE"
jobs:
lint-web:
runs-on:
- codebuild-defguard-proxy-runner-${{ github.run_id }}-${{ github.run_attempt }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 24
- name: install deps
working-directory: ./web
run: |
npm i -g pnpm
pnpm i --frozen-lockfile
- name: Build translations
working-directory: ./web
run: pnpm dlx @inlang/paraglide-js compile --project ./project.inlang --outdir ./src/paraglide
- name: Lint
working-directory: ./web
run: pnpm lint
- name: Audit
working-directory: ./web
run: pnpm audit --prod