Use Node version defined in cli/package.json

This commit is contained in:
François Leblanc 2025-07-14 22:25:47 -04:00
commit ace91a81ad

View file

@ -15,15 +15,19 @@ jobs:
run:
working-directory: ./cli
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: "14"
node-version-file: package.json
cache: npm
- name: Install dependencies
run: npm install
# Working around https://github.com/npm/cli/issues/4828
- run: npm install --no-package-lock
- name: Build CLI
run: npm run build
- name: Run tests
run: npm test