Skip to content

Commit 50616e8

Browse files
committed
chore: 更新 GitHub Actions 工作流程,將 npm 替換為 yarn 並啟用 corepack,以改善依賴安裝流程
1 parent 9ad4fd3 commit 50616e8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/dev-release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919
- uses: actions/checkout@v4
2020

2121
- uses: actions/setup-node@v4
22-
with: { node-version: 20, cache: 'npm' }
22+
with: { node-version: 20, cache: yarn }
2323

24-
- run: npm ci
24+
- name: Enable corepack
25+
- run: corepack enable
26+
27+
- name: Install dependencies
28+
- run: yarn install --frozen-lockfile
2529

2630
- name: Build electron (Windows, macOS, Linux)
27-
uses: samuelmeuli/action-electron-builder@v1
28-
with:
29-
github_token: ${{ secrets.GITHUB_TOKEN }}
30-
release: false
31-
args: --publish=never
31+
run: yarn build
3232

3333
- uses: actions/upload-artifact@v4
3434
with:

0 commit comments

Comments
 (0)