Skip to content

Commit 9e0bf7f

Browse files
Add deploy workflow (#99)
* Add deploy workflow * Add new line
1 parent 0cc4f67 commit 9e0bf7f

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/deploy.yaml

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

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v21.1.0

0 commit comments

Comments
 (0)