GithubHelp home page GithubHelp logo

mikaelvesavuori / figma-plugin-continuous-design Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 4.0 3.83 MB

Continuous Design (GitHub Actions) is a Figma plugin that lets you run GitHub Actions workflows from Figma.

License: MIT License

HTML 47.24% TypeScript 44.92% CSS 4.90% JavaScript 2.93%
figma figma-plugins figma-plugin continuous-delivery continuous-design continuous-deployment github-actions

figma-plugin-continuous-design's Introduction

Continuous Design — Figma plugin

Cover art

Continuous Design is a Figma plugin that lets you run GitHub Actions, GitLab CI/CD pipelines, Bitbucket Pipelines, and Azure DevOps Pipelines from Figma.

If you want to practice "continuous design" using Figma and a modern development toolchain, it may be time to start deploying design changes straight from Figma!

Plugin

Examples of using each provider in the Continuous Design Figma plugin.

Prerequisites

You will need:

Permissions and data collection

Depending on your provider, you will need either a personal access token or an application password. These are are the accepted ways of handling plugins and other external tooling in the GitHub/Bitbucket/Azure DevOps contexts.

The plugin itself never sends this information anywhere other than to call the respective provider APIs.

You can however decide to store the state of all fields privately within Figma. Doing so stores the current state (including the PAT value) in Figma's contained asyncStorage (essentially a sandboxed localStorage).

Using the plugin

Given that you have the prerequisites under control, it's just a matter of filling out the fields.

The strictly necessary fields to get a success response are:

  • Personal access token/Application password: Your token or password from GitHub/GitLab/Bitbucket/Azure.
  • User name: Your user name. For Azure this is the name of the DevOps organization, as in https://dev.azure.com/$ORG_NAME/$REPO_NAME/.
  • Repository name: Your repository name as it appears in a typical URL.
  • Workflow name [GitHub only]: Has to be specified in the style of filename.yml. Defaults to main.yml.
  • Project ID [GitLab only]: Has to be specified in the style of 12341234.
  • Organization name [Bitbucket only]: Your organization's name (might also be called "workspace").
  • Definition ID [Azure only]: The seemingly random (?) ID that each pipeline receives. The easiest way to get it is to navigate to your pipeline in the Azure DevOps web console and check the URL bar which should look like: https://dev.azure.com/YOUR_USER/YOUR_PROJECT/_build?definitionId=16.
  • Branch or Ref: Must be the same as the branch you want to trigger. Defaults to main.

The optional fields are:

  • Message: Can be used to provide the CI workflow some context on what's changed.
  • Version: Can be used to provide the CI workflow information on a version. See the below example for how this can be used with—for example—Figmagic to pull data from a given version of your Figma document.

You will receive a popup/alert that informs you that the workflow is starting/failing.

figma-plugin-continuous-design's People

Contributors

mikaelvesavuori avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

figma-plugin-continuous-design's Issues

Not found error

Hello !

Thanks for this plugin!

This error message appear when I try to connect Plugin with Github

{
"message": "Not Found",
"documentation_url": "https://docs.github.com/rest"
}

The repository is in a Organization (if helps)
image

Regards!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.