-
Notifications
You must be signed in to change notification settings - Fork 18
feat: add figma code connect #5937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nmerget
wants to merge
10
commits into
main
Choose a base branch
from
feat-code-connect
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1ecab80
feat: add figma code connect
nmerget fe35ff5
chore: update snapshots for figma
nmerget adc0e94
chore: update workflow for figma code connect
nmerget 3c9d996
fix: issue with workflow
nmerget 5c60693
chore: add how to for figma-connect
nmerget 497b70f
fix: issues from PR
nmerget 9258649
Merge remote-tracking branch 'origin/main' into feat-code-connect
nmerget 534c954
chore: update from main
nmerget 4c71eff
fix: issues from PR
nmerget 97fbac1
Merge remote-tracking branch 'origin/main' into feat-code-connect
nmerget File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -173,3 +173,4 @@ carsharing | |
| bikesharing | ||
| carsharing | ||
| bikesharing | ||
| figd | ||
This file contains hidden or 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
This file contains hidden or 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,30 @@ | ||
| --- | ||
| name: Build Figma Code Connect | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| build-figma-code-connect: | ||
| name: Build Figma Code Connect | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - name: ⏬ Checkout repo | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: 🔄 Init Cache | ||
| uses: ./.github/actions/npm-cache | ||
|
|
||
| - name: 🔨 Generate Figma Code Connect | ||
| env: | ||
| FIGMA_FILE: ${{ github.event.pull_request != null && vars.FIGMA_FILE_DEV || vars.FIGMA_FILE_MAIN }} | ||
| run: npm run generate:figma --workspace=@db-ux/core-components | ||
|
|
||
| - name: ⏫ Upload figma-code-connect | ||
| uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: figma-code-connect | ||
| path: figma-code-connect |
This file contains hidden or 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,35 @@ | ||
| --- | ||
| name: Test figma code-connect | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| deploy: | ||
| name: Test figma code-connect | ||
| runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| target: [angular, react, vue] | ||
| steps: | ||
| - name: ⏬ Checkout repo | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: 🔄 Init Cache | ||
| uses: ./.github/actions/npm-cache | ||
|
|
||
| - name: ⏬ Download figma code connect | ||
| uses: actions/download-artifact@v7 | ||
| with: | ||
| name: figma-code-connect | ||
| path: figma-code-connect | ||
|
|
||
| - name: ⚡ Run Test | ||
| env: | ||
| FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }} | ||
| run: | | ||
| npm run test --workspace=${{ matrix.target }}-figma |
This file contains hidden or 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,35 @@ | ||
| --- | ||
| name: Publish to figma code-connect | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| deploy: | ||
| name: Publish to figma code-connect | ||
| runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| target: [angular, react, vue] | ||
| steps: | ||
| - name: ⏬ Checkout repo | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: 🔄 Init Cache | ||
| uses: ./.github/actions/npm-cache | ||
|
|
||
| - name: ⏬ Download figma code connect | ||
| uses: actions/download-artifact@v7 | ||
| with: | ||
| name: figma-code-connect | ||
| path: figma-code-connect | ||
|
|
||
| - name: 🖌️🔌 Publish | ||
| env: | ||
| FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }} | ||
| run: | | ||
| npm run connect --workspace=${{ matrix.target }}-figma |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,7 @@ | ||
| { | ||
| "codeConnect": { | ||
| "include": ["/**/*.ts"], | ||
| "label": "Angular", | ||
| "parser": "html" | ||
| } | ||
| } |
This file contains hidden or 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,23 @@ | ||
| { | ||
| "name": "angular-figma", | ||
| "version": "0.0.0", | ||
| "type": "module", | ||
| "description": "Publish figma code connect", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/db-ux-design-system/core-web.git" | ||
| }, | ||
| "license": "Apache-2.0", | ||
| "scripts": { | ||
| "connect": "npx figma connect publish", | ||
| "test": "vitest run --config vitest.config.ts", | ||
| "test:update": "vitest run --config vitest.config.ts --update" | ||
| }, | ||
| "devDependencies": { | ||
| "vitest": "4.1.2" | ||
| }, | ||
| "publishConfig": { | ||
| "registry": "https://registry.npmjs.org/", | ||
| "access": "public" | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.