Skip to content

Commit aaf4379

Browse files
committed
chore: support both v22 and v24 in test CI
1 parent 777cab0 commit aaf4379

3 files changed

Lines changed: 26 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
permissions: write-all
12+
strategy:
13+
matrix:
14+
node-version: [24]
1215
env:
1316
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1417
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -24,7 +27,7 @@ jobs:
2427

2528
- uses: actions/setup-node@v6
2629
with:
27-
node-version: 24
30+
node-version: ${{ matrix.node-version }}
2831
cache: yarn
2932
registry-url: https://registry.npmjs.org
3033

@@ -37,7 +40,7 @@ jobs:
3740
path: |
3841
.cache/yarn
3942
node_modules
40-
key: ubuntu-latest-node22-${{ hashFiles('yarn.lock') }}
43+
key: ubuntu-latest-node${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}
4144

4245
## --- INSTALL --- ##
4346
# If statement isn't needed here b/c yarn will leverage the cache if it exists

.github/workflows/testing.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ on:
77
jobs:
88
test:
99
runs-on: ubuntu-latest
10-
10+
strategy:
11+
matrix:
12+
node-version: [22, 24]
1113
steps:
1214
- name: Check out code
1315
uses: actions/checkout@v5
@@ -19,7 +21,7 @@ jobs:
1921
uses: actions/setup-node@v6
2022
with:
2123
cache: yarn
22-
node-version: 24
24+
node-version: ${{ matrix.node-version }}
2325

2426
- name: Install dependencies
2527
run: yarn install --immutable
@@ -31,6 +33,9 @@ jobs:
3133
permissions:
3234
pull-requests: write
3335
runs-on: ubuntu-latest
36+
strategy:
37+
matrix:
38+
node-version: [24]
3439
steps:
3540
- uses: actions/checkout@v5
3641

@@ -40,7 +45,7 @@ jobs:
4045
- uses: actions/setup-node@v6
4146
with:
4247
cache: yarn
43-
node-version: 24
48+
node-version: ${{ matrix.node-version }}
4449

4550
- name: Install dependencies
4651
run: yarn install --immutable
@@ -72,6 +77,9 @@ jobs:
7277
timeout-minutes: 5
7378
permissions:
7479
contents: read
80+
strategy:
81+
matrix:
82+
node-version: [24]
7583
steps:
7684
- name: Check out code
7785
uses: actions/checkout@v5
@@ -84,7 +92,7 @@ jobs:
8492
- name: Use Node LTS version
8593
uses: actions/setup-node@v6
8694
with:
87-
node-version: 24
95+
node-version: ${{ matrix.node-version }}
8896
cache: yarn
8997

9098
## --- YARN CACHE --- ##
@@ -96,7 +104,7 @@ jobs:
96104
path: |
97105
.cache/yarn
98106
node_modules
99-
key: ubuntu-latest-node22-${{ hashFiles('yarn.lock') }}
107+
key: ubuntu-latest-node${{ matrix.node-version }}-${{ hashFiles('yarn.lock') }}
100108

101109
## --- INSTALL --- ##
102110
# If statement isn't needed here b/c yarn will leverage the cache if it exists

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# glob-concat-cli
22

3+
<img src="https://repository-images.githubusercontent.com/690650165/91f13310-76b3-43ff-b7ab-53daa21a90ce" alt=""/>
4+
35
> A command-line interface for concatenating files leveraging [fast-glob](https://github.com/mrmlnc/fast-glob#fast-glob).
46
57
## Key features
68

7-
- Concatenates files on the command line
9+
- Quick and easy concatenation of files on the command line
810
- Supports robust glob patterns via [fast-glob](https://github.com/mrmlnc/fast-glob#pattern-syntax)
9-
- Allows empty files to be ignored (great for use with automated build tools)
10-
- Can output to stdout or a file
11+
- Automatically ignores empty files by default (great for use with automated build tools)
12+
- Can output to stdout or a new or existing file
1113
- Provides a sourcemap for the concatenated files by default
1214

1315
## Install
@@ -20,6 +22,8 @@ npm install --dev glob-concat-cli
2022
yarn add --dev glob-concat-cli
2123
```
2224

25+
Currently, this project supports node v22 and v24. We plan to deprecate support for node v22 by March of 2026.
26+
2327
## API
2428

2529
### `files`
@@ -60,7 +64,7 @@ When leveraging this package, you can also pass in any of the options supported
6064

6165
Due to how this utility is built, the following options are not supported:
6266

63-
- `onlyDirectories` (this is always set to `false` because this utility is meant to concatenate files)
67+
- `onlyDirectories` (this is always set to `false` because this utility is meant to concatenate files only)
6468
- `stats`
6569
- `objectMode`
6670

0 commit comments

Comments
 (0)