From f5ba4376fd4ce5dd774bb4fed341153203d1b474 Mon Sep 17 00:00:00 2001 From: fcying Date: Sun, 8 Dec 2024 09:46:02 +0800 Subject: [PATCH] get autohotkey2-lsp version from package.json --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 79eaa6d..bef87c9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,11 +88,10 @@ jobs: mkdir autohotkey2-lsp && cd $_ curl -L -o install.js https://raw.githubusercontent.com/thqby/vscode-autohotkey2-lsp/main/tools/install.js node install.js + ver=$(cat package.json | grep '"version":' | grep -Po "(\d+\.){2}\d+") + cd ../ - ver=$(cat CHANGELOG.md | head -1 | grep -Po "(\d+\.){2}\d+") echo "version=$ver" >> $GITHUB_OUTPUT - - cd ../ 7z -mx9 a ~/tools/autohotkey2-lsp.zip ./autohotkey2-lsp - name: Get putty #{{{