feat(tokens): lagt til spacing i brand/dimension og device/fixed-spacing #68
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 Node.js-miljø | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| - name: Installer avhengigheter | |
| run: npm install | |
| - name: Bygg tokens | |
| run: npm 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 }} |