chore: fix code connect and add switch #71
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: Figma Code Connect publish | |
on: | |
push: | |
paths: | |
- packages/web-ui/src/**/*.figma.tsx | |
- packages/native-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 Web UI Figma Code Connect components | |
working-directory: ./packages/web-ui | |
run: pnpm run figma:publish --token=${{ secrets.FIGMA_ACCESS_TOKEN }} | |
- name: π Publish Native UI Figma Code Connect components | |
working-directory: ./packages/native-ui | |
run: pnpm run figma:publish --token=${{ secrets.FIGMA_ACCESS_TOKEN }} |