-
Notifications
You must be signed in to change notification settings - Fork 83
47 lines (39 loc) · 1.09 KB
/
verify-js-built.yaml
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: Verify built assets
on:
push:
branches: ["main", "rc-*"]
pull_request:
jobs:
verify_js_built:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract node version from .nvmrc
id: nvm
working-directory: js
run: |
echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "${{ steps.nvm.outputs.version }}"
- name: Install dependencies
run: npm ci
working-directory: js
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Build
run: npm run build
working-directory: js
- name: Check for uncommitted changes
run: |
if [[ `git status --porcelain` ]]; then
git diff
echo "Uncommitted changes found. Please commit any changes that result from 'npm run build'."
exit 1
else
echo "No uncommitted changes found."
fi
working-directory: js