-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (40 loc) · 1.11 KB
/
publish-vscode-extension.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Publish VSCode extension to Marketplace and OpenVSX
on:
workflow_dispatch:
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@v4
with:
lfs: true
- uses: actions/setup-node@v4
with:
node-version: '18'
- name: Setup antlr4
uses: ./.github/actions/setup-antlr4
- 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: |
cd packages/vscode-extension
npx ovsx publish -p $VSX_PAT