Skip to content

feat: support rrggbbaa format for hex color tokens, solves #198 #583

feat: support rrggbbaa format for hex color tokens, solves #198

feat: support rrggbbaa format for hex color tokens, solves #198 #583

Workflow file for this run

name: feature
on:
push:
branches:
- 'main'
- 'feature/*'
pull_request:
branches:
- 'main'
- 'feature/*'
permissions:
contents: read
jobs:
build-unix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
run: |
npm ci --ignore-scripts
npm audit fix --force
npm install -g
- name: Test
run: npm test
env:
IS_CI: true
- name: Build
run: npm run build
- name: Run
run: npm run figmagic
#- name: Run #then check for files
# run: |
# npm run figmagic
# #\[ -d .figmagic \]
# #\[ -f .figmagic/figma.json \]
build-windows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['windows-latest']
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
run: |
npm ci --ignore-scripts
npm audit fix --force
npm install -g
- name: Test
run: echo Skipping tests on Windows because of weird platform issues... #npm test
- name: Build
run: npm run build
- name: Run
run: npm run figmagic
#- name: Run, then check for files
# run: |
# npm run figmagic
# Test-Path .figmagic
# Test-Path .figmagic/figma.json -PathType leaf