From 73d32195ad68b18548f6e4bcb1bf7e434755ce01 Mon Sep 17 00:00:00 2001 From: legendecas Date: Mon, 6 Nov 2023 10:50:11 +0800 Subject: [PATCH] chore: update npm in actions --- .github/workflows/ci-win.yml | 7 +++++++ .github/workflows/ci.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/ci-win.yml b/.github/workflows/ci-win.yml index 3dbc4cd46..2ea21a320 100644 --- a/.github/workflows/ci-win.yml +++ b/.github/workflows/ci-win.yml @@ -2,6 +2,9 @@ name: Node.js CI Windows Platform on: [push, pull_request] +env: + PYTHON_VERSION: '3.11' + permissions: contents: read @@ -18,6 +21,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - name: Set up Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0 + with: + python-version: ${{ env.PYTHON_VERSION }} - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa1eb68e1..ec9a3cc56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,9 @@ name: Node.js CI Unix Platform on: [push, pull_request] +env: + PYTHON_VERSION: '3.11' + permissions: contents: read @@ -23,6 +26,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - name: Set up Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0 + with: + python-version: ${{ env.PYTHON_VERSION }} - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: