Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions .github/workflows/assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Assets

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

# Cancel any in-progress runs for the same branch when a new push lands.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Disable all permissions by default; grant minimal permissions per job.
permissions: {}

jobs:
build:
name: Build and lint assets

runs-on: ubuntu-latest

timeout-minutes: 15

permissions:
contents: read

steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false

- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 'lts/*'
cache: npm

- name: Install dependencies
run: npm ci

- name: Lint JavaScript
run: npm run lint:js

- name: Lint styles
run: npm run lint:css

- name: Build assets
run: npm run build
66 changes: 33 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.