Skip to content

Commit 94f0a75

Browse files
authored
Merge pull request #6 from ttskch/chore/support-multi-node-versions
chore: 🤖 support multiple Node.js versions (closes #5)
2 parents 9a2c8a9 + 15a0329 commit 94f0a75

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,22 @@ on: [push]
44

55
jobs:
66
build:
7-
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
os: [ubuntu-latest]
10+
node: [20, 21, 22]
11+
12+
runs-on: ${{ matrix.os }}
813

914
steps:
1015
- uses: actions/checkout@v4
11-
- uses: volta-cli/action@v4
1216
- uses: pnpm/action-setup@v4
17+
with:
18+
run_install: false
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: ${{ matrix.node }}
22+
cache: pnpm
1323
- run: pnpm install
1424
- run: pnpm biome ci
1525
- run: pnpm test

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
A Prettier plugin for sorting TailwindCSS classes **in any HTML-like language, like Twig etc**
99

10+
## Requirements
11+
12+
* Node: `>= 20.9 < 23`
13+
1014
## Installation
1115

1216
```shell

package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "@ttskch/prettier-plugin-tailwindcss-anywhere",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"description": "A Prettier plugin for sorting TailwindCSS classes in any HTML-like language, like Twig etc.",
55
"keywords": ["prettier", "tailwindcss", "formatter", "html", "twig"],
66
"type": "module",
77
"engines": {
8-
"node": ">= 20.9 < 21"
8+
"node": ">= 20.9 < 23"
99
},
1010
"packageManager": "[email protected]",
1111
"main": "dist/index.js",
@@ -49,8 +49,5 @@
4949
"test:watch": "vitest unit"
5050
},
5151
"author": "Takashi Kanemoto <[email protected]>",
52-
"license": "MIT",
53-
"volta": {
54-
"node": "20.17.0"
55-
}
52+
"license": "MIT"
5653
}

0 commit comments

Comments
 (0)