CI(GitHub Actions): use .node-version

Summary:
Ref D497. Centralize management for node version management.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: land and wait for next npm-pub release.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Tags: #npm

Differential Revision: https://issuetracker.revi.xyz/D502
This commit is contained in:
revi 2024-07-03 20:01:21 +09:00
parent 94363b2d43
commit f78f311269
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94

View file

@ -22,7 +22,7 @@ jobs:
- name: 'Setup node.js' - name: 'Setup node.js'
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20.x' node-version-file: '.node-version'
cache: npm cache: npm
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
- name: 'Install dependencies' - name: 'Install dependencies'
@ -47,7 +47,7 @@ jobs:
- name: 'Setup node.js' - name: 'Setup node.js'
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20.x' node-version-file: '.node-version'
cache: npm cache: npm
registry-url: 'https://registry.npmjs.org' registry-url: 'https://registry.npmjs.org'
- name: 'Install dependencies' - name: 'Install dependencies'