From 69d09933cac7905314df029a9acb1c411fa36088 Mon Sep 17 00:00:00 2001 From: Roman Filatov Date: Fri, 20 Dec 2024 14:25:19 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20pipeline=20for=20publishing?= =?UTF-8?q?=20to=20marketplace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref #2 --- .github/workflows/publish.yml | 22 ++++++++++++++++++++++ package.json | 1 + 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/publish.yml 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",