-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (40 loc) · 1.24 KB
/
sync-figma.yml
File metadata and controls
48 lines (40 loc) · 1.24 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Sync tokens to Figma
on:
push:
paths:
- 'packages/tokens/tokens/**'
- 'packages/tokens/src/**'
branches:
- main
jobs:
sync-tokens-to-figma:
# Prevents action from publishing on forks
if: github.repository == 'launchdarkly/launchpad-ui'
timeout-minutes: 15
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Get Tokens
uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.2.0
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
ssm_parameter_pairs: |
/production/common/launchpad-ui/figma-file-key = FIGMA_FILE_KEY,
/production/common/launchpad-ui/figma-token = FIGMA_TOKEN
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build tokens
run: pnpm nx run @launchpad-ui/tokens:build
- name: Sync tokens to Figma file
run: pnpm nx run @launchpad-ui/tokens:sync