Skip to content

chore: add code connect GH action #1

chore: add code connect GH action

chore: add code connect GH action #1

Workflow file for this run

on:
push:
paths:
- apps/apps/native-ui-storybook/figma-connect/*.figma.tsx
branches:
- main

Check failure on line 7 in .github/workflows/code-connect.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/code-connect.yml

Invalid workflow file

You have an error in your yaml syntax on line 7
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 Figma Code Connect components
env:
FIGMA_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }}
run: npx figma connect publish --token ${{ secrets.FIGMA_ACESS_TOKEN }}