diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..094c4bf --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +name: Deploy extension + +on: + release: + types: [published] + +jobs: + publish-marketplace: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies + run: npm ci + + - name: Deploy to marketplace + run: npm run vscode:publish + env: + VSCE_PAT: ${{ secrets.VSCODE_SECRET }} diff --git a/package.json b/package.json index faf4c19..5d0d43c 100755 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "contributes": {}, "scripts": { "vscode:prepublish": "npm run compile", + "vscode:publish": "vsce publish", "compile": "tsc -p ./", "watch": "tsc -watch -p ./", "pretest": "npm run compile && npm run lint",