-
-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (35 loc) · 970 Bytes
/
format_animations.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
45
name: Format animations
on:
push:
branches:
- main
paths:
- animations/**/*.json
jobs:
format-animations:
name: Format animation JSONs
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 22.6
- name: Cache NPM dependencies
id: cache-npm
uses: actions/cache@v4
with:
path: node_modules/
key: npm-${{ hashFiles('package-lock.json') }}
- name: Install NPM dependencies
if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
run: npm ci
- name: Format animation JSONs
run: npm run build:clean
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 🎨 Format animation JSONs
# file_pattern: animations/**/*.json