Skip to content

Commit c4fe71b

Browse files
Added deploy workflow
1 parent 31c180a commit c4fe71b

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
9+
jobs:
10+
publish-extension:
11+
name: Publish to marketplace
12+
runs-on: ubuntu-latest
13+
environment: Production
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version-file: .nvmrc
22+
23+
- name: Install dependencies
24+
run: yarn install
25+
26+
- name: Publish to Open VSX Registry
27+
id: publishToOpenVSX
28+
uses: HaaLeo/publish-vscode-extension@v1
29+
with:
30+
pat: ${{ secrets.OPEN_VSX_TOKEN }}
31+
32+
- name: Publish to Visual Studio Marketplace
33+
uses: HaaLeo/publish-vscode-extension@v1
34+
with:
35+
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
36+
registryUrl: https://marketplace.visualstudio.com
37+
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}

.prettierrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"tabWidth": 2
3+
}

0 commit comments

Comments
 (0)