Skip to content

Commit

Permalink
Publish to open-vsx
Browse files Browse the repository at this point in the history
Signed-off-by: Fred Bricon <fbricon@gmail.com>
  • Loading branch information
fbricon committed Jul 18, 2022
1 parent 9f1b882 commit be25722
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ jobs:

- name: Build vsix
working-directory: ./jbang-vscode
run: vsce package --pre-release
run: |
node ./scripts/create-package-insiders-json.js
mv ./package.insiders.json ./package.json
vsce package --pre-release
- name: Upload vsix
uses: actions/upload-artifact@v3
Expand All @@ -62,12 +65,18 @@ jobs:
files: |
jbang-vscode/*.vsix
- name: Publish to Open VSX Marketplace
if: github.ref == 'refs/heads/main'
working-directory: ./jbang-vscode
run: |
npx ovsx publish --pre-release -p $OVSX_TOKEN
env:
OVSX_TOKEN: ${{ secrets.OPENVSX_MARKETPLACE_TOKEN }}

- name: Publish to VSCode Marketplace
if: github.ref == 'refs/heads/main'
working-directory: ./jbang-vscode
run: |
node ./scripts/create-package-insiders-json.js
mv ./package.insiders.json ./package.json
vsce publish --pre-release -p $VSCE_TOKEN
npx vsce publish --pre-release -p $VSCE_TOKEN
env:
VSCE_TOKEN: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
VSCE_TOKEN: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
2 changes: 1 addition & 1 deletion src/CodeLensProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class CodeLensProvider implements CodeLensProvider {
break;
}
}
if (firstDirectivePosition !== undefined) {
if (firstDirectivePosition) {
codelenses.push(new CodeLens(firstDirectivePosition, {
command: "jbang.synchronize",
title: "Synchronize JBang",
Expand Down

0 comments on commit be25722

Please sign in to comment.