Skip to content

Commit 5436588

Browse files
committed
Protect the frontend build against drift
1 parent 9177413 commit 5436588

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/js-build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: JS Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
name: Build and verify
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v6
16+
17+
- name: Set up Node.js and Yarn via mise
18+
uses: jdx/mise-action@v2
19+
20+
- name: Cache node_modules
21+
uses: actions/cache@v4
22+
with:
23+
path: node_modules
24+
key: node-modules-${{ hashFiles('yarn.lock') }}
25+
restore-keys: node-modules-
26+
27+
- name: Install dependencies
28+
run: yarn install --frozen-lockfile
29+
30+
- name: Build
31+
run: yarn prod
32+
33+
- name: Verify no uncommitted changes
34+
run: |
35+
git diff --exit-code django_prose_editor/static/

0 commit comments

Comments
 (0)