chore(spindle-tokens): test PR #23
This file contains 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: build design tokens via webhook | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- feat/figma-variables | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
build_tokens: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: restore lerna | |
uses: actions/cache@v3 | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-v2 | |
- run: yarn install --frozen-lockfile | |
- name: Build Tokens | |
env: | |
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }} | |
FIGMA_FILE_KEY_COLOR_VARIABLES: ${{ secrets.FIGMA_FILE_KEY_COLOR_VARIABLES }} | |
run: | | |
yarn global add tsx | |
tsx scripts/color.ts | |
working-directory: packages/spindle-tokens | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
commit-message: 'feat(spindle-tokens): update design tokens' | |
branch: feat/build-tokens-via-webhook | |
delete-branch: true | |
title: 'feat(spindle-tokens): update design tokens' | |
body: '' | |
labels: | | |
spindle-tokens |