From 5497b7f0ae55fc5e765914abf22285f7708c668a Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Tue, 24 Dec 2024 10:52:01 +0900 Subject: [PATCH] Retrieve Node.js version from `.nvmrc` Signed-off-by: Sora Morimoto --- .github/workflows/ci.yml | 8 ++++---- .nvmrc | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d40d9bfa19..1eb6bb0cf6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -135,7 +135,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version-file: .nvmrc - name: Get artifact dir name run: node .github/workflows/get_artifact_dir_name.js @@ -401,7 +401,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version-file: .nvmrc - name: NPM install run: npm ci --ignore-scripts @@ -461,7 +461,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version-file: .nvmrc - name: Download artifacts uses: actions/download-artifact@v4 @@ -495,7 +495,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version-file: .nvmrc registry-url: https://registry.npmjs.org # Needed to make auth work for publishing - name: Download artifacts diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000000..3c032078a4 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +18