From 1b3d86f71da1e9d63eb46d88aa042baeaa28c382 Mon Sep 17 00:00:00 2001 From: Emile Rolley Date: Thu, 5 Sep 2024 10:16:25 +0200 Subject: [PATCH] ci: update the publish workflow --- .github/workflows/publish.yml | 17 ++++++++++++----- package.json | 1 - 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 23ab919..633f5ee 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,11 +1,18 @@ name: GitHub release and VSCode Extension publishing on: - push: - tags: - - "v*.*.*" - - "v*.*.*-*" - - "v*.*.*-*.*" + workflow_run: + workflows: ["Build, test and check format"] + branch: + - main + types: + - completed + + # push: + # tags: + # - "v*.*.*" + # - "v*.*.*-*" + # - "v*.*.*-*.*" jobs: publish: diff --git a/package.json b/package.json index 2e150f3..b80149f 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "test": "yarn run compile && sh ./scripts/e2e.sh", "format": "prettier --write .", "format:check": "prettier --check . server client", - "postversion": "git push --tags && git push --force", "vscode:prepublish": "yarn run compile" }, "activationEvents": [