From 81bf417b9b123ce0befe7c4e6f1c8731d929846f Mon Sep 17 00:00:00 2001 From: seven Date: Sat, 13 Jan 2024 17:40:17 +0800 Subject: [PATCH] feat: fix pipeline error due to missing dependencies #3 Signed-off-by: seven --- .github/workflows/node.yml | 6 ++++++ .github/workflows/release.yml | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 2a8d4de..1fe3930 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -23,11 +23,17 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Install rpm + run: sudo apt-get install -y rpm + if: matrix.os == 'ubuntu-latest' - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'npm' + - uses: actions/setup-python@v4 + with: + python-version: '3.10' - run: npm ci - run: npm run lint:check - run: npm audit --audit-level=critical diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07fb830..496e846 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,20 +7,21 @@ jobs: build: strategy: matrix: - os: - [ - { name: 'linux', image: 'ubuntu-latest' }, - { name: 'windows', image: 'windows-latest' }, - { name: 'macos', image: 'macos-latest' }, - ] + os: [macos-latest, ubuntu-latest, windows-latest] runs-on: ${{ matrix.os.image }} steps: - name: Github checkout uses: actions/checkout@v4 + - name: Install rpm + run: sudo apt-get install -y rpm + if: matrix.os == 'ubuntu-latest' - name: Use Node.js uses: actions/setup-node@v4 with: node-version: 20 + - uses: actions/setup-python@v4 + with: + python-version: '3.10' - run: npm ci - run: npm run build - name: Build app