37 lines
931 B
YAML
37 lines
931 B
YAML
name: Icon codegen
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'assets/icons/**'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'assets/icons/**'
|
|
|
|
concurrency:
|
|
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check:
|
|
name: Check generated icons
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: ⬇️ Check out Git repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
|
|
- name: 🔧 Install node
|
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
with:
|
|
node-version-file: package.json
|
|
cache: pnpm
|
|
- name: 📦 pnpm install
|
|
run: pnpm install --frozen-lockfile
|
|
- name: 🖼️ Check generated icons
|
|
run: pnpm icons:check
|