From 2a5e1c1b4c3f0ab443ce049b4d025639dd2a833f Mon Sep 17 00:00:00 2001 From: macintoshhelper <6757532+macintoshhelper@users.noreply.github.com> Date: Wed, 21 Aug 2024 14:04:34 +0400 Subject: [PATCH] create automated releases readme --- developer-knowledgebase/automated-releases.md | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 developer-knowledgebase/automated-releases.md diff --git a/developer-knowledgebase/automated-releases.md b/developer-knowledgebase/automated-releases.md new file mode 100644 index 000000000..28d319832 --- /dev/null +++ b/developer-knowledgebase/automated-releases.md @@ -0,0 +1,43 @@ +# Automated Releases + +For automated releases, `figcd` is used. https://github.com/opral/parrot-figcd + +## Instructions + +Make sure that app-based MFA/TOTP is enabled for Figma, as it is necessary for publishing plugin releases. + +**Creating a Figma authentication token locally** + +```sh +npx figcd auth +``` + +> Enter your Figma email + +> Enter your Figma password + +> Enter your Figma TOTP token + +**Copy and paste the Terminal output** + +Example: + +```sh +FIGMA_WEB_AUTHN_TOKEN=%7B%2figtkn.123.authn.456%22%7D +``` + +**Configure the secret on GitHub** + +> Repo Settings > Security > Secrets and Variables > Actions > Environment secrets + +```sh +FIGMA_WEB_AUTHN_TOKEN +``` + +### Release Command + +```sh +npx figcd release +``` + +