From 945686c79495d40dfd1aed9ed05f6b1c572c4267 Mon Sep 17 00:00:00 2001 From: PRO-2684 <54608551+PRO-2684@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:16:51 +0800 Subject: [PATCH] Update release workflow --- .github/workflows/release.yml | 10 +++++++++- README.md | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3ddb2d2..62be7e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,10 +16,18 @@ jobs: with: fetch-depth: 16 # Ensure we can generate changelogs + - name: "Setup Node.js" + uses: "actions/setup-node@v2" + with: + node-version: "20" + + - name: "Install Dependencies" + run: npm i + - name: "Zip release files" # Only if the version has been updated run: | echo "Creating a release zip file..." - zip -r transitio-release.zip icons/ modules/ main.js manifest.json preload.js renderer.js settings.html + zip -r transitio-release.zip icons/ node_modules/ modules/ main.js manifest.json preload.js renderer.js settings.html echo "Done!" - name: "Create Release" diff --git a/README.md b/README.md index 8ccc869..0c66342 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ ### CI 版 -若想体验最新的 CI 功能,需要下载源码后安装要求的 NPM 依赖 (`npm install`)。 +若想体验最新的 CI 功能,需要下载源码后安装要求的 NPM 依赖 (`npm i`)。 ## 🤔 使用方法