Skip to content

Commit

Permalink
Adds GH job to publish the VSCode ext to Marketplace and OpenVSX
Browse files Browse the repository at this point in the history
  • Loading branch information
ncordon committed May 9, 2024
1 parent e8a1279 commit 7a7b220
Show file tree
Hide file tree
Showing 3 changed files with 642 additions and 8 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/publish-vscode-extension.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish VSCode extension to Marketplace and OpenVSX

on:
# Only allow this workflow manually from the Actions tab
workflow_dispatch:

env:
NODE_OPTIONS: '--max_old_space_size=4096'

jobs:
publish-vscode-extension:
name: 'Publish VSCode extension to Marketplace and OpenVSX'
environment: publish-vscode-extension
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '18'

- name: Setup antlr4
uses: ./.github/actions/setup-antlr4

- name: Install dependencies with frozen lock file and generate parser
run: npm ci

- name: Build all packages
run: npm run build

- name: Publish to VSCode Marketplace
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}:
run: |
cd packages/vscode-extension
npx vsce package
npx vsce publish
Loading

0 comments on commit 7a7b220

Please sign in to comment.