From c2befa34814cff401e825a8bee66eb52fa2b4a3a Mon Sep 17 00:00:00 2001 From: Mateusz Jenek Date: Tue, 11 Jun 2024 10:04:26 +0200 Subject: [PATCH] chore(ci): use git tag name as a version on extension publishing --- .github/workflows/ci.yaml | 2 +- package.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 827f562..cc28dce 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -40,6 +40,6 @@ jobs: - name: Publish if: success() && startsWith(github.ref, 'refs/tags/') && runner.os == 'Linux' - run: npm run deploy + run: npx vsce publish ${{ github.ref_name }} env: VSCE_PAT: ${{ secrets.VSCE_PAT }} diff --git a/package.json b/package.json index 5c734cc..d821a6d 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "publisher": "humanitec", "description": "This extension is designed to enhance your experience when working with the Humanitec Platform Orchestrator directly from Visual Studio Code. It provides a set of features to simplify your workflow, making it easier to manage your applications, components, and configurations.", "icon": "media/humanitec_logo.png", - "version": "0.1.1", + "version": "0.0.0", "engines": { "vscode": "^1.87.0" }, @@ -165,7 +165,6 @@ "test": "vscode-test", "prettier": "npx prettier . --write", "package": "vsce package", - "deploy": "vsce publish", "prepare": "husky" }, "lint-staged": {