-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (37 loc) · 1.12 KB
/
code-connect.yml
File metadata and controls
44 lines (37 loc) · 1.12 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
name: Figma Code Connect Publish
on:
push:
paths:
- 'packages/components/figma/**'
- 'packages/icons/figma/**'
branches:
- main
jobs:
code-connect:
name: Code Connect
# 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 Token
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-access-token = FIGMA_ACCESS_TOKEN'
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Connect publish
run: pnpm figma connect publish --exit-on-unreadable-files