Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds GH job to publish the VSCode ext to Marketplace and OpenVSX #209

Merged
merged 4 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/publish-vscode-extension.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Publish VSCode extension to Marketplace and OpenVSX

on:
push:
tags:
- "neo4j-for-vscode@*.*.*"

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feels like it's soon time for us to consider caching builds in CI, so we only do one build per merge and just download the artifacts


- name: Install dependencies with frozen lock file
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

- name: Publish to OpenVSX
env:
VSX_PAT: ${{ secrets.VSX_PAT }}:
run: npx ovsx publish -p $VSX_PAT


Loading
Loading