Skip to content

Commit 71270b1

Browse files
committed
Manage node version via .nvmrc
Inspired by @K-dizzled
1 parent 1ca0983 commit 71270b1

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.github/workflows/coqpilot.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ jobs:
4343
run: eval $(opam env)
4444

4545
- name: Install Node.js
46-
uses: actions/setup-node@v3
46+
uses: actions/setup-node@v4
4747
with:
48-
node-version: ">=20.5.0"
49-
48+
node-version-file: ".nvmrc"
5049
- run: npm ci
5150

5251
- name: Check coq-lsp version
@@ -106,9 +105,9 @@ jobs:
106105
if: github.ref == 'refs/heads/main'
107106
steps:
108107
- uses: actions/checkout@v4
109-
- uses: actions/setup-node@v3
108+
- uses: actions/setup-node@v4
110109
with:
111-
node-version: ">=20.5.0"
110+
node-version-file: ".nvmrc"
112111
- name: Install Dependencies
113112
run: npm ci
114113
- name: Download Build Artifact

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.13.1

README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,19 @@ With coq-lsp, extension should have everything it needs to run.
7474

7575
### Building locally
7676

77-
To build the extension locally, you will need to have `npm` installed. Then you can clone the repository and run the following commands:
77+
First, clone the Coqpilot repository and navigate into its directory.
78+
```bash
79+
git clone https://github.com/JetBrains-Research/coqpilot.git
80+
cd coqpilot
81+
```
82+
83+
To build the extension locally, you'll need Node.js installed. The recommended way to manage Node.js versions is by using `nvm`. From the Coqpilot root directory, execute:
84+
```bash
85+
nvm use
86+
```
87+
If you prefer not to use `nvm`, ensure you install the Node.js version specified in the [`.nvmrc`](.nvmrc) file by any other method you prefer.
88+
89+
Once Node.js is installed, the remaining setup will be handled by the `npm` package manager. Run the following commands:
7890
```bash
7991
npm install
8092
npm run compile

0 commit comments

Comments
 (0)