Skip to content

Commit 2b42b19

Browse files
authored
Extent supported NodeJS runtimes (LinusU#7)
Test the code on more NodeJS runtimes. Publish package using npm v11.
2 parents a7e1aef + debed21 commit 2b42b19

File tree

5 files changed

+30
-6
lines changed

5 files changed

+30
-6
lines changed

.devcontainer/devcontainer.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "node-v10",
3+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04",
4+
"features": {
5+
"ghcr.io/devcontainers/features/node:1": {
6+
"version": "10"
7+
}
8+
}
9+
}

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
os: [ macos-13 ]
16-
node: [ 12, 14, 16 ]
16+
node: [ 10, 12, 14, 16, 18, 20, 22 ]
1717

1818
runs-on: ${{ matrix.os }}
1919

@@ -39,8 +39,8 @@ jobs:
3939
hdiutil attach macos_alias_volume_hfs.dmg
4040
cp test/basics.js /Volumes/macos_alias
4141
42-
- name: npm install
43-
run: npm install
42+
- name: npm ci
43+
run: npm ci
4444

4545
- name: npm tests
4646
run: npm test

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
- name: checkout
2121
uses: actions/checkout@v4
2222

23-
- name: setup node 16
23+
- name: setup node 18
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: 16
26+
node-version: 18
2727
registry-url: ${{ vars.NODE_REGISTRY_URL }}
2828

2929
- name: setup python 3.10
@@ -32,7 +32,7 @@ jobs:
3232
python-version: '3.10'
3333

3434
- name: setup npm
35-
run: npm install -g npm@9
35+
run: npm install -g npm@11
3636

3737
- name: npm ci
3838
run: npm ci

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ This library does currently not handle the `book\0\0\0\0mark\0\0\0\0`-header. It
88

99
I intend to add something like `alias.write(buf, path)` and `alias.read(path)`.
1010

11+
12+
## Requirements
13+
14+
To install and run the `macos-alias` package you need:
15+
16+
* Mac OS X 10.11 or newer
17+
* macOS 11 or newer
18+
* NodeJS 10 or newer
19+
* Python 3.10
20+
21+
1122
## Installation
1223

1324
```sh

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,9 @@
2626
},
2727
"dependencies": {
2828
"nan": "^2.4.0"
29+
},
30+
"engines": {
31+
"node": ">=10",
32+
"npm": ">=7"
2933
}
3034
}

0 commit comments

Comments
 (0)