-
Notifications
You must be signed in to change notification settings - Fork 74
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
Can I publish a single node instead of everything? #236
Comments
What you can do is publishing only a specific component folder using
|
Thanks, that's very insightful! I didn't see that Testing it here, it's not working with our current setup using SetupInside {
"codeConnect": {
"parser": "react",
"...": "...",
"documentUrlSubstitutions": {
"<FIGMA_BANNER>": "https://www.figma.com/design/<figma-node-1>",
"<FIGMA_BUTTONS>": "https://www.figma.com/design/<figma-node-2>",
"...": "...",
}
}
} Then, inside the component file itself, for example figma.connect(Button, '<FIGMA_BUTTONS>', {...}) Failed to parseIf I run the following command with the setup above: npx figma connect publish --dir src/button/ I get a However, if I replace the NB: Running the default command ( |
Hi @renandf, there is a limitation here in that we look for the A workaround for this is to also use the |
Thanks. Still struggling to make it work here. I'm getting different issues depending on "where I run the command from." As mentioned before, if I run npx figma connect publish --dir src/button --config figma.config.json Which oddly gives me the error:
So it was able to find the config file, but now it's complaining about the Code Connect file, which it shouldn't be because it was exactly the same file it found in the previous command. The only difference was adding the Important I get the same error even if I replace the If I move to the root directory (or any level above for that matter) and run the command with adjusted paths: npx figma connect publish --dir packages/elements/src/button --config packages/elements/figma.config.json I get a different error:
|
When running In the meantime a workaround could be to temporarily remove the |
The title says it all. I'd like to publish a single node like I can do with the
unpublish
. for Example, I'd like this to work:But I get
error: unknown option '--node=NODE_URL'
when trying to publish a single node.The use case here is that I'm working on multiple branches to connect the components in our Design System. Given that we have
Component 1
,Component 2
, ...Component X
, and I'm working on individual git branches to update each component with Code Connect, once I publishComponent 1
then work onComponent 2
, I'd like to be able to publish onlyComponent 2
. What happens is that I have to publish it all and an outdated version ofComponent 1
is published as well, because the updated version is on a different branch. This is causing workflow confusion because my team keeps publishing everything at once, updating the intended single component and bringing outdated versions of all other components in that branch.Is there a way to publish just the component I'm currently working on?
1.2.4
macOS Sequoia 15.3 (24D60)
The text was updated successfully, but these errors were encountered: