|
| 1 | +--- |
| 2 | +title: Publishing Themes & Extensions |
| 3 | +--- |
| 4 | + |
| 5 | +This document outlines how to publish your Extensions/Themes to Phoenix Code Extension store. |
| 6 | + |
| 7 | +## Publishing Extensions/Themes. |
| 8 | +Extensions created from the Phoenix Code extension/theme template can be easily published from your GitHub repository to the store. |
| 9 | + |
| 10 | +Follow these steps: |
| 11 | + |
| 12 | +1. Increment the `version` field in `package.json` file before publishing, if needed. |
| 13 | +2. Compress the extension folder into a zip file with name `extension.zip`. |
| 14 | +> **It is important to name the file as exactly `extension.zip`** |
| 15 | +
|
| 16 | + |
| 17 | + |
| 18 | +3. Create a new release in GitHub and attach the above `extension.zip` file in the release. |
| 19 | + 1. On GitHub.com, navigate to the main page of the repository. |
| 20 | + 2. To the right of the list of files, click `Releases`. |
| 21 | + |
| 22 | +  |
| 23 | + |
| 24 | + 3. Click on `Draft a new release`. |
| 25 | + |
| 26 | +  |
| 27 | + |
| 28 | + 4. Select `choose a tag` and type in your new extension version and `Create new tag`. |
| 29 | + |
| 30 | +  |
| 31 | + |
| 32 | + 5. Fill out all the remaining fields. |
| 33 | + 6. Drag and drop the `extension.zip` file to the release. |
| 34 | + |
| 35 | +  |
| 36 | + |
| 37 | + 7. Click on `Publish release` button. |
| 38 | + > See Release Example: https://github.com/phcode-dev/extension-template/releases/tag/0.0.1 |
| 39 | +4. You will get an issue in your issue tab regarding the publishing status of the extension/theme. |
| 40 | + > See Example: https://github.com/phcode-dev/extension-template/issues/2 |
| 41 | +5. If there are any errors in publishing, please visit the link in the issue to see the errors. Fix and `retry` publishing the release. |
| 42 | + |
| 43 | +  |
| 44 | + |
| 45 | +6. Once published, your extension will appear in the Phoenix Code Extension Store at [https://phcode.dev](https://phcode.dev). |
| 46 | + |
| 47 | +  |
| 48 | + |
| 49 | +## Publishing legacy Brackets extensions |
| 50 | +> Follow this section only for old brackets extensions. |
| 51 | +
|
| 52 | +To publish Extensions/themes that are not created from the above [theme](https://github.com/phcode-dev/theme-template) and [extension](https://github.com/phcode-dev/extension-template) template |
| 53 | +or old Brackets extensions, please follow the steps below: |
| 54 | + |
| 55 | +1. Create a GitHub repository for your extension if it is not present. |
| 56 | +2. Create a file `.github/workflows/publishToPhcode.yml` in your repo with the following contents: https://github.com/phcode-dev/theme-template/blob/main/.github/workflows/publishToPhcode.yml |
| 57 | + |
| 58 | +That's all, you can now follow the above [Publishing to the extension/theme store](#publishing-to-the-extensiontheme-store) section. |
| 59 | + |
| 60 | +## FAQ |
| 61 | +### Why is my extension not being published? |
| 62 | +Your repository must be **public** to be able to be published to the Phoenix Code Extension store. |
| 63 | +See this link on [understanding how to change repository visibility](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility#changing-a-repositorys-visibility) to public in GitHub. |
| 64 | + |
| 65 | +### How can I get a Verified Badge for my extension? |
| 66 | +The `verified` extension badge(tick mark) will be automatically granted to verified GitHub Organizations. |
| 67 | + |
| 68 | +### How do I delete my extension from the store |
| 69 | +Please raise an issue here: https://github.com/phcode-dev/phoenix/issues/new/choose, mention your extension repository. |
| 70 | + |
0 commit comments