Skip to content

Commit

Permalink
Fix Extensions (#565)
Browse files Browse the repository at this point in the history
Co-authored-by: Filip Troníček <filip@gitpod.io>
Co-authored-by: Filip Troníček <filip.tronicek@seznam.cz>
  • Loading branch information
3 people authored Apr 26, 2022
1 parent c6cd4aa commit 1fd822c
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 78 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ jobs:
- uses: actions/setup-node@v3.1.1
with:
node-version: "14.x"
- run: npm i
- run: npm i -g vsce
- run: npm install
- run: npm install --global vsce
- uses: actions/setup-python@v3
with:
python-version: "3.8"
- run: npm install
- run: EXTENSIONS=$(node diff-extensions) node publish-extensions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,16 @@ If a `custom` property is provided, then every command from the array is execute

See all `ovsx` CLI options [here](https://github.com/eclipse/openvsx/blob/master/cli/README.md).

## Environment Variables
Custom commands such as `prepublish` and the ones inside the `custom`-array receive a few environment variables
in order to perform advanced tasks such as executing operations based on the extension version.

Following environment variables are available:
- `EXTENSION_ID`: the extension ID, e.g. `rebornix.ruby`
- `EXTENSION_PUBLISHER`: the extension publisher, e.g. `rebornix`
- `EXTENSION_NAME`: the extension name, e.g. `ruby`
- `VERSION`: the version of the extension to publish, e.g. `0.1.0`
- `MS_VERSION`: the latest version of the extension on MS marketplace, e.g. `0.1.0`
- `OVSX_VERSION`: the latest version of the extension on Open VSX, e.g. `0.1.0`

[publish-extensions-job]: https://github.com/open-vsx/publish-extensions/blob/master/.github/workflows/publish-extensions.yml
Loading

0 comments on commit 1fd822c

Please sign in to comment.