From ed56e177cf27847df41e049f788f7a73f475e3e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Tue, 16 Apr 2024 11:49:44 +0800 Subject: [PATCH] chore:workflow version --- .github/workflows/release.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3feeb1df..0f16284b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,14 @@ jobs: - name: Use Node.js 20.X uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 20.x + + - name: Extract version from tag + run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV + + - name: Print version + run: echo $VERSION + - name: Build NuCat Linux run: | npm i --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }} @@ -53,6 +60,12 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20.x + - name: Extract version from tag + run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV + + - name: Print version + run: echo $VERSION + - name: Build NuCat Linux run: | npm i --arch=${{ matrix.target_arch }} --platform=${{ matrix.target_platform }}