From e129376c6ca4a4e59581dde84cde67c7f680d271 Mon Sep 17 00:00:00 2001 From: Hao Zhang Date: Wed, 28 Jan 2026 18:51:30 +0800 Subject: [PATCH] ci: specify node and python versions in workflows and root files --- .github/workflows/docs.yml | 4 ++++ .github/workflows/npm.yml | 4 ++++ .node-version | 1 + .python-version | 1 + 4 files changed, 10 insertions(+) create mode 100644 .node-version create mode 100644 .python-version diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b1cba64..4190c79 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,6 +2,9 @@ name: Docs permissions: contents: read +env: + NODE_LATEST_VERSION: 24 + on: push: branches: @@ -20,6 +23,7 @@ jobs: - uses: actions/setup-node@v6 with: + node-version: ${{ env.NODE_LATEST_VERSION }} cache: 'npm' - name: dependencies diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 25a2637..ff776f0 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -2,6 +2,9 @@ name: Publish npm permissions: contents: read +env: + NODE_LATEST_VERSION: 24 + on: - push - pull_request @@ -25,6 +28,7 @@ jobs: - uses: actions/setup-node@v6 with: + node-version: ${{ env.NODE_LATEST_VERSION }} cache: 'npm' - name: version diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..a45fd52 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +24 diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..6324d40 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.14