Skip to content

Flytting og theming av box shadows #122

Flytting og theming av box shadows

Flytting og theming av box shadows #122

name: Bygg tokens ved PR-endringer
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'tokens/**'
permissions:
contents: write
jobs:
build_tokens:
runs-on: ubuntu-latest
name: Bygg tokens ved endring i tokens-mappen
steps:
- name: Hent kode fra Github
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Klargjør pnpm
uses: pnpm/action-setup@v4
- name: Klargjør Node.js-miljø
uses: actions/setup-node@v4
with:
node-version: '24.x'
cache: 'pnpm'
- name: Installer avhengigheter
run: pnpm ci
- name: Bygg tokens
run: pnpm run tokenbuild
- name: Commit and push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git diff --cached --quiet || git commit -m "(tokens): oppdatert css basert på nye tokens"
git push origin HEAD:${{ github.head_ref }}