Skip to content

try this

try this #50

Workflow file for this run

name: Figma Code Connect publish
on:
push
# push:
# paths:
# - apps/native-ui-storybook/figma-connect/*.figma.tsx
# - packages/web-ui/src/**/*.figma.tsx
# branches:
# - main
jobs:
code-connect:
name: Code Connect
runs-on: ubuntu-latest
steps:
- name: πŸ— Setup repo
uses: pnpm/action-setup@v4
with:
version: 8
- name: πŸ— Checkout
uses: actions/checkout@v4
- name: πŸ— Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: πŸ“¦ Install dependencies
run: pnpm install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: πŸš€ Publish Native UI Figma Code Connect components
run: npx figma connect publish --token ${{ secrets.FIGMA_ACCESS_TOKEN }} --config ./figma.config.json
- name: πŸš€ Publish Web UI Figma Code Connect components
working-directory: ./packages/web-ui
run: pnpm run figma:publish --token=${{ secrets.FIGMA_ACCESS_TOKEN }}