From 0d36629d111bff7677e2277412543b1c4570da14 Mon Sep 17 00:00:00 2001 From: DongjaJ Date: Sun, 15 Dec 2024 20:47:17 +0900 Subject: [PATCH] chore(.github/workflows): update actions/setup-node to use 'node-version-file' instead of 'node-version --- .github/workflows/ci_backend.yaml | 5 +---- .github/workflows/ci_frontend.yaml | 7 ++----- .github/workflows/desktop-publish.yml | 3 +-- .github/workflows/gh_pages.yaml | 2 +- 4 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci_backend.yaml b/.github/workflows/ci_backend.yaml index 052d65b5..872e1884 100644 --- a/.github/workflows/ci_backend.yaml +++ b/.github/workflows/ci_backend.yaml @@ -16,9 +16,6 @@ jobs: test: name: Check the source code runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x] env: working-directory: ./backend steps: @@ -29,7 +26,7 @@ jobs: - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' cache: "pnpm" - name: Install packages run: pnpm install --frozen-lockfile diff --git a/.github/workflows/ci_frontend.yaml b/.github/workflows/ci_frontend.yaml index 0a5ce742..d16fa7a2 100644 --- a/.github/workflows/ci_frontend.yaml +++ b/.github/workflows/ci_frontend.yaml @@ -16,9 +16,6 @@ jobs: test: name: Check the source code runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x] env: working-directory: ./frontend steps: @@ -26,10 +23,10 @@ jobs: uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v4 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' cache: "pnpm" - name: Install packages run: pnpm install --frozen-lockfile diff --git a/.github/workflows/desktop-publish.yml b/.github/workflows/desktop-publish.yml index a40c6d85..bed9e01f 100644 --- a/.github/workflows/desktop-publish.yml +++ b/.github/workflows/desktop-publish.yml @@ -9,7 +9,6 @@ jobs: strategy: matrix: os: [macos-latest, ubuntu-latest, windows-latest] - node-version: [18.x] defaults: run: @@ -22,7 +21,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' - name: Set up pnpm uses: pnpm/action-setup@v4 diff --git a/.github/workflows/gh_pages.yaml b/.github/workflows/gh_pages.yaml index eaebbb09..d1bce83e 100644 --- a/.github/workflows/gh_pages.yaml +++ b/.github/workflows/gh_pages.yaml @@ -17,7 +17,7 @@ jobs: - name: Setup Node 🔧 uses: actions/setup-node@v4 with: - node-version: "18" + node-version-file: '.nvmrc' cache: "pnpm" cache-dependency-path: pnpm-lock.yaml