filesafe/.github/workflows/build.yml

52 lines
1.2 KiB
YAML
Raw Normal View History

name: build
on:
push:
branches:
- safe.fiery.me
paths:
- 'src/**/*.css'
- 'src/**/*.js'
- 'src/**/*.scss'
2020-08-24 05:34:28 +00:00
- 'src/versions.json'
env:
NODE_VERSION: 18
jobs:
build:
2021-01-08 19:55:41 +00:00
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@v3
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:
2021-01-08 19:55:41 +00:00
commit_message: 'dist: rebuilt client assets and bumped v1 version string'
2020-08-24 05:32:54 +00:00
commit_user_name: loli-bot
commit_user_email: hi@fiery.me
env:
CI: true