-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work on implementing code connect to allow for realistic code preview…
… in figma (#4545) * Work on implementing code connect * adding config * fixing lint issues * fix for type issue * fix some icons * fixes for button and adding Link component * add as property to branchname * rm figma:sync script * chore: fix typescript issues in Button.figma for code connect * chore: fix typo * chore: add nocheck for button and generate Octicon figma file * chore: add notice to generated file * fix icons --------- Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
- Loading branch information
1 parent
dde7cef
commit 2b22017
Showing
11 changed files
with
3,403 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Figma Connect Publish on Change | ||
|
||
on: | ||
push: | ||
paths: | ||
- packages/react/src/components/**/*.figma.tsx | ||
branches: | ||
- main | ||
|
||
jobs: | ||
code-connect: | ||
name: Code Connect | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: npx figma connect publish | ||
env: | ||
FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"codeConnect": { | ||
"include": ["src/**/*.figma.tsx", "src/**/*.tsx"], | ||
"exclude": ["test/**", "docs/**", "build/**"], | ||
"react": { | ||
"importPaths": { | ||
"./src/*": "@primer/react" | ||
}, | ||
"paths": {} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.