Skip to content

Commit 00cee45

Browse files
AndreasArvidssonpokey
andauthoredJan 9, 2025
Added deploy workflow (#32)
* Added deploy workflow * Lock node version * Update .github/workflows/deploy.yaml Co-authored-by: Pokey Rule <[email protected]> * Update .github/workflows/deploy.yaml Co-authored-by: Pokey Rule <[email protected]> * Update .github/workflows/deploy.yaml Co-authored-by: Pokey Rule <[email protected]> * Update .github/workflows/deploy.yaml Co-authored-by: Pokey Rule <[email protected]> * Added step name --------- Co-authored-by: Pokey Rule <[email protected]>
1 parent 31c180a commit 00cee45

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed
 

‎.github/workflows/deploy.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
with:
15+
fetch-depth: 0
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version-file: .nvmrc
21+
cache: yarn
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 }}

‎.nvmrc

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

‎.prettierrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"tabWidth": 2
3+
}

0 commit comments

Comments
 (0)