-
Notifications
You must be signed in to change notification settings - Fork 1.3k
73 lines (62 loc) · 1.88 KB
/
Copy pathpublish-extension.yml
File metadata and controls
73 lines (62 loc) · 1.88 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Publish Extension
on:
release:
types: [published]
workflow_dispatch:
inputs:
dry_run:
description: 'Package without publishing'
type: boolean
default: false
concurrency:
group: publish-extension
cancel-in-progress: false
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: |
package-lock.json
webview-ui/package-lock.json
server/package-lock.json
- name: Install dependencies
run: npm ci
- name: Install webview dependencies
run: npm ci
working-directory: webview-ui
- name: Install server dependencies
run: npm ci
working-directory: server
- name: Check types and lint
run: npm run check-types && npm run lint
- name: Publish to VS Code Marketplace
id: publish-vscode
uses: HaaLeo/publish-vscode-extension@v2
with:
pat: ${{ secrets.VSCE_PAT }}
registryUrl: https://marketplace.visualstudio.com
skipDuplicate: true
dryRun: ${{ inputs.dry_run == 'true' }}
- name: Publish to Open VSX
uses: HaaLeo/publish-vscode-extension@v2
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
registryUrl: https://open-vsx.org
extensionFile: ${{ steps.publish-vscode.outputs.vsixPath }}
skipDuplicate: true
dryRun: ${{ inputs.dry_run == 'true' }}
- name: Upload VSIX to Release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.publish-vscode.outputs.vsixPath }}