diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..2f4a68e --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,37 @@ +name: Deploy + +on: + workflow_dispatch: + +jobs: + publish-extension: + name: Publish to marketplace + runs-on: ubuntu-latest + environment: production + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + cache: yarn + + - 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 }} diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..f4801a0 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v21.1.0 diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..b3b052f --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,3 @@ +{ + "tabWidth": 2 +}