forked from chibisafe/chibisafe
-
Notifications
You must be signed in to change notification settings - Fork 55
51 lines (42 loc) · 1.25 KB
/
build.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
46
47
48
49
50
51
name: build
on:
push:
branches:
- safe.fiery.me
paths:
- 'src/**/*.css'
- 'src/**/*.js'
- 'src/**/*.scss'
- 'src/versions.json'
env:
NODE_VERSION: 18
jobs:
build:
name: Rebuild client assets and bump v1 version string
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Cache node_modules
uses: actions/cache@v4
id: cache-nodemodules
with:
path: node_modules
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --non-interactive
- name: Update browserslist/caniuse-lite
run: npx browserslist@latest --update-db
- name: yarn build
run: yarn build
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'dist: rebuilt client assets and bumped v1 version string'
commit_user_name: loli-bot
commit_user_email: hi@fiery.me
env:
CI: true