From aa3649167e8b71e4c0fd0810ea81471b73378654 Mon Sep 17 00:00:00 2001 From: Kento Nishi Date: Mon, 23 Dec 2024 00:10:12 -0500 Subject: [PATCH] auto version --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1fd7c6a..00a179b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,11 @@ jobs: - name: Build extensions run: | - VERSION=$(echo -n ${{ github.ref }} | sed 's/[refs\/tagv]//g') yarn build + sudo apt install jq + export VERSION=$(echo -n ${{ github.ref }} | sed 's/[refs\/tagv]//g') + jq '.version = env.VERSION' package.json > package.json.tmp && mv package.json.tmp package.json + jq '.version = env.VERSION' src/manifest.json > src/manifest.json.tmp && mv src/manifest.json.tmp src/manifest.json + yarn build yarn package - name: Upload Chrome package to release