Skip to content

STG - 🧼 Linting PR #660: chore(front): adds ui theme vars and applies initial dark theme #69

STG - 🧼 Linting PR #660: chore(front): adds ui theme vars and applies initial dark theme

STG - 🧼 Linting PR #660: chore(front): adds ui theme vars and applies initial dark theme #69

Workflow file for this run

name: 🧺 Lint
run-name: "${{ github.ref_name == 'main' && 'PRD' || 'STG' }} - 🧼 Linting ${{ github.event_name == 'pull_request' && format('PR #{0}: {1}', github.event.pull_request.number, github.event.pull_request.title) || format('latest {0}', github.ref_name) }}"
on:
workflow_dispatch:
pull_request:
paths:
- "front/**"
branches: [main, develop]
push:
paths:
- "front/**"
branches: [main, develop]
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
lint:
name: 💅 Prettier
runs-on: ubuntu-latest
environment:
name: ${{ github.ref_name == 'main' && 'prd' || 'stg' }}
steps:
- name: 𐂷 Checkout
uses: actions/checkout@v3
with:
repository: dgrebb/dgrebb.com
ref: ${{ github.ref }}
token: ${{ github.token }}
sparse-checkout: |
front
- name: ⬢ Setup Node & Cache
uses: actions/setup-node@v3
with:
node-version: "18.17.1"
cache: "npm"
cache-dependency-path: |
front/package.json
front/package-lock.json
front/node_modules
- name: ↧ Install & Patch
run: cd front && npm ci
- name: 👓 Check
run: |
cd front && npm run lint