fix: 打包脚本

This commit is contained in:
hello8693 2024-08-28 20:50:54 +08:00
parent f81bf2d592
commit 272fa130a1

View File

@ -7,7 +7,6 @@ on:
jobs: jobs:
build: build:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
if: github.event.release.prerelease == false || matrix.os == 'windows-latest'
strategy: strategy:
matrix: matrix:
@ -17,14 +16,19 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4.1.7 uses: actions/checkout@v4.1.7
if: github.event.release.prerelease == false || matrix.os == 'windows-latest'
- name: Set up Node.js - name: Set up Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
if: github.event.release.prerelease == false || matrix.os == 'windows-latest'
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- name: Install dependencies - name: Install dependencies
run: yarn install run: yarn install
if: github.event.release.prerelease == false || matrix.os == 'windows-latest'
- name: Build and package for Windows - name: Build and package for Windows
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'