Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PRO-2684 committed Sep 25, 2024
1 parent 15cc41d commit 945686c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

### CI 版

若想体验最新的 CI 功能,需要下载源码后安装要求的 NPM 依赖 (`npm install`)。
若想体验最新的 CI 功能,需要下载源码后安装要求的 NPM 依赖 (`npm i`)。

## 🤔 使用方法

Expand Down

0 comments on commit 945686c

Please sign in to comment.