Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy

on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
Comment thread
AndreasArvidsson marked this conversation as resolved.
Outdated

jobs:
publish-extension:
name: Publish to marketplace
runs-on: ubuntu-latest
environment: Production
Comment thread
AndreasArvidsson marked this conversation as resolved.
Outdated
steps:
- name: Checkout repository
uses: actions/checkout@v4
Comment thread
AndreasArvidsson marked this conversation as resolved.

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
Comment thread
AndreasArvidsson marked this conversation as resolved.

- name: Install dependencies
run: yarn install

- name: Publish to Open VSX Registry
id: publishToOpenVSX
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}

- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v21.1.0
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"tabWidth": 2
}