-
Notifications
You must be signed in to change notification settings - Fork 8
33 lines (31 loc) · 1.04 KB
/
create-tokens.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Create tokens
on:
workflow_dispatch:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: true
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16.13
- name: Install Node Dependencies
run: npm ci
# Transform Figma Tokens JSON to something Style Dictionary can read, then
# Convert tokens according to Style Dictionary config
- name: Build Style Dictionary
run: npm run tokens:build
# Add files that were created during a run, e.g. created files from Style
# Dictionary or token-transformer.
- uses: stefanzweifel/git-auto-commit-action@v4
with:
personal_token: ${{ secrets.ADD_TO_PROJECT_PAT }}
commit_message: 'feat: create tokens'