Code Monkey home page Code Monkey logo

publish-extensions's Introduction

Publish Extensions to Open VSX

Gitpod Ready-to-Code GitHub Workflow Status

A CI for publishing open-source VS Code extensions to https://open-vsx.org

How to Add an Extension?

To automatically publish an extension to Open VSX, simply add it to extensions.json.

You can also run node add-extension [REPOSITORY] to add it automatically.

Open in Gitpod

Publishing Options

Here is the expected format of an extensions.json entry:

    {
      // Unique Open VSX extension ID in the form "<namespace>.<name>"
      "id": "redhat.vscode-yaml",
      // Repository URL to clone and publish from
      "repository": "https://github.com/redhat-developer/vscode-yaml"
    },

Here are all the supported values, including optional ones:

    {
      // Unique Open VSX extension ID in the form "<namespace>.<name>"
      "id": "ms-vscode.cpptools",
      // (OPTIONAL) The version to publish to Open VSX (defaults to the package.json version)
      "version": "0.26.3",
      // Repository URL to clone and publish from
      "repository": "https://github.com/microsoft/vscode-cpptools",
      // (OPTIONAL) The Git branch, tag, or commit to check out before publishing (defaults to the repository's default branch)
      "checkout": "0.26.3",
      // (OPTIONAL) Location of the extension's package.json in the repository (defaults to the repository's root directory)
      "location": "Extension"
    },

How are Extensions Published?

Every night at 03:03 UTC, a GitHub workflow goes through all entries in extensions.json, and checks if the specified "version" needs to be published to https://open-vsx.org or not.

The publishing process can be summarized like this:

  1. git clone "repository"
  2. (git checkout "checkout" if a "checkout" value is specified)
  3. npm install (or yarn install if a yarn.lock file is detected in the provided "location")
  4. (ovsx create-namespace "publisher" if it doesn't already exist)
  5. ovsx publish (with --yarn if a yarn.lock file was detected earlier)

See all ovsx CLI options here.

publish-extensions's People

Contributors

jankeromnes avatar spoenemann avatar vince-fugnitto avatar

Watchers

 avatar

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.