try this #49
Workflow file for this run
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 | |
# 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 }} |