From 33410db1be5f4653328f38c4dc1699d8ff9f2c03 Mon Sep 17 00:00:00 2001 From: drl990114 Date: Tue, 5 Nov 2024 21:51:40 +0800 Subject: [PATCH] ci: node version --- .github/workflows/gh-pages.yml | 5 +++++ .github/workflows/test-ci.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 96dc125..6dcc45d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -9,6 +9,11 @@ jobs: deploy: runs-on: ubuntu-latest steps: + - name: Install node + uses: actions/setup-node@v4 + with: + node-version-file: '../.nvmrc' + - uses: actions/checkout@v2 - name: Install dependencies run: yarn install --immutable diff --git a/.github/workflows/test-ci.yml b/.github/workflows/test-ci.yml index abba6a5..616a75f 100644 --- a/.github/workflows/test-ci.yml +++ b/.github/workflows/test-ci.yml @@ -10,6 +10,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: Install node + uses: actions/setup-node@v4 + with: + node-version-file: '../.nvmrc' + - name: Checkout repository uses: actions/checkout@v3 # v3