From aee3c5634b6b4ac5a9c8994f241bc351b9a36ef6 Mon Sep 17 00:00:00 2001 From: hi2hi Date: Mon, 9 Dec 2024 14:31:21 +0000 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8F=91=E5=B8=83=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c83fdcd..da86db3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,9 @@ jobs: with: node-version: '20' # 根据项目需求调整版本 + - name: 初始化构建环境 + run: npm install + - name: 从package.json读取版本号 id: get_version run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT @@ -33,9 +36,6 @@ jobs: echo "version=${{ steps.get_version.outputs.version }}" >> $GITHUB_OUTPUT fi - - name: 初始化构建环境 - run: npm install - - name: 创建Release id: create_release uses: actions/create-release@v1