Skip to content

Commit 338792f

Browse files
committed
add minimum nodejs version
1 parent bd6b66f commit 338792f

File tree

7 files changed

+46
-18
lines changed

7 files changed

+46
-18
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@ jobs:
1717
runs-on: ${{ matrix.os }}
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121
- name: Setup Node.js
22-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v4
2323
with:
24-
node-version: 16.16.0
24+
node-version: 20.x
25+
cache: 'npm'
26+
- name: Enable Corepack
27+
run: corepack enable
2528
- name: Install dependencies
26-
run: npm install
29+
run: npm ci
2730
- name: Run headless test
28-
uses: GabrielBB/xvfb-action@v1.0
31+
uses: GabrielBB/xvfb-action@v1.6
2932
with:
3033
run: npm test

.github/workflows/release.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,21 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out branch
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0 # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1717

18-
- name: Set up Node.js 16.16.0
19-
uses: actions/setup-node@v2
18+
- name: Set up Node.js 20.x
19+
uses: actions/setup-node@v4
2020
with:
21-
node-version: 16.16.0
22-
21+
node-version: 20.x
22+
cache: 'npm'
23+
24+
- name: Enable Corepack
25+
run: corepack enable
26+
2327
- name: Install dependencies
24-
run: npm install
28+
run: npm ci
2529
env:
2630
CI: true
2731

@@ -37,12 +41,9 @@ jobs:
3741
- name: Publish to VSCode Marketplace
3842
if: steps.changesets.outputs.published == 'true'
3943
working-directory: ./packages/vscode-css-variables
40-
run: |
41-
npm i
42-
npx vsce publish -p ${{ secrets.VSCE_PAT }}
44+
run: npx vsce publish -p ${{ secrets.VSCE_PAT }}
45+
4346
- name: Publish to OpenVSX
4447
if: steps.changesets.outputs.published == 'true'
4548
working-directory: ./packages/vscode-css-variables
46-
run: |
47-
npm i
48-
npx ovsx publish -p ${{ secrets.OVSX_TOKEN }}
49+
run: npx ovsx publish -p ${{ secrets.OVSX_TOKEN }}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ Checkout [Chronoid App - Automatic Time Tracking & Productivity for macOS →](h
88

99
**[Install via the Visual Studio Code Marketplace →](https://marketplace.visualstudio.com/items?itemName=vunguyentuan.vscode-css-variables)**
1010

11+
## Requirements
12+
13+
- **Node.js**: >= 20.0.0 (LTS)
14+
- **npm**: >= 10.0.0
15+
16+
If you're developing or contributing to this extension, make sure you have the correct Node.js version installed. You can use [nvm](https://github.com/nvm-sh/nvm) to manage Node.js versions:
17+
18+
```bash
19+
nvm use
20+
```
21+
22+
## Configuration
23+
1124
By default the extension only scan files with this glob patterns:
1225

1326
```json

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"version": "0.0.0",
44
"private": true,
55
"packageManager": "npm@11.3.0",
6+
"engines": {
7+
"node": ">=20.0.0",
8+
"npm": ">=10.0.0"
9+
},
610
"workspaces": [
711
"packages/*"
812
],

packages/css-variables-language-server/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
"bin": {
1313
"css-variables-language-server": "bin/index.js"
1414
},
15+
"engines": {
16+
"node": ">=20.0.0",
17+
"npm": ">=10.0.0"
18+
},
1519
"dependencies": {
1620
"axios": "^1.13.2",
1721
"culori": "^4.0.2",

packages/vscode-css-variables/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"description": "Autocomplete CSS Variable support CSS, SCSS, LESS, PostCSS, VueJS, ReactJS and more",
66
"publisher": "vunguyentuan",
77
"engines": {
8-
"vscode": "^1.63.0"
8+
"vscode": "^1.63.0",
9+
"node": ">=20.0.0",
10+
"npm": ">=10.0.0"
911
},
1012
"keywords": [
1113
"cssvariable",

0 commit comments

Comments
 (0)