13
13
workflow_dispatch : {}
14
14
15
15
env :
16
- NODE_BUILD_CMD : npx --no-install prebuild -r node -t 18.0.0 -t 20.0.0 -t 21.0.0 --include-regex 'better_sqlite3.node$'
17
- ELECTRON_BUILD_CMD : npx --no-install prebuild -r electron -t 16.0.0 -t 17.0.0 -t 18.0.0 -t 19.0.0 -t 20.0.0 -t 21.0.0 -t 22.0.0 -t 23.0.0 -t 24.0.0 -t 25.0.0 -t 26.0.0 -t 27.0.0 -t 28.0.0 -t 29.0.0 -t 30.0.0 --include-regex 'better_sqlite3.node$'
16
+ # See https://nodejs.org/en/about/previous-releases
17
+ # Node.js 16 EOL = 11 Sep 2023
18
+ NODE_BUILD_CMD : npx --no-install prebuild -r node -t 18.0.0 -t 20.0.0 -t 21.0.0 -t 22.0.0 --include-regex 'better_sqlite3.node$'
19
+ # See https://www.electronjs.org/docs/latest/tutorial/electron-timelines#version-support-policy
20
+ # The v25 EOL = 2023-dec-5. v26 EOL = 2024-feb-20. v27 EOL = 2024-apr-16. v28 EOL = 2024-jun-11. v29 EOL = 2024-aug-20.
21
+ ELECTRON_BUILD_CMD : npx --no-install prebuild -r electron -t 25.0.0 -t 26.0.0 -t 27.0.0 -t 28.0.0 -t 29.0.0 -t 30.0.0 --include-regex 'better_sqlite3.node$'
18
22
19
23
jobs :
20
24
test :
29
33
- 18
30
34
- 20
31
35
- 21
36
+ - 22
32
37
name : Testing Node ${{ matrix.node }} on ${{ matrix.os }}
33
38
runs-on : ${{ matrix.os }}
34
39
steps :
61
66
- uses : actions/checkout@v4
62
67
- uses : actions/setup-node@v4
63
68
with :
64
- node-version : 16
69
+ node-version : 18
65
70
registry-url : https://registry.npmjs.org
66
71
- run : npm publish
67
72
env :
82
87
- uses : actions/checkout@v4
83
88
- uses : actions/setup-node@v4
84
89
with :
85
- node-version : 16
90
+ node-version : 18
86
91
- if : ${{ startsWith(matrix.os, 'windows') }}
87
92
run : pip.exe install setuptools
88
93
- if : ${{ startsWith(matrix.os, 'macos') }}
@@ -102,7 +107,7 @@ jobs:
102
107
prebuild-alpine :
103
108
name : Prebuild on alpine
104
109
runs-on : ubuntu-latest
105
- container : node:16 -alpine
110
+ container : node:18 -alpine
106
111
needs : publish
107
112
steps :
108
113
- uses : actions/checkout@v4
@@ -123,7 +128,7 @@ jobs:
123
128
- uses : actions/checkout@v4
124
129
- uses : docker/setup-qemu-action@v3
125
130
- run : |
126
- docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/${{ matrix.arch }} node:16 -alpine -c "\
131
+ docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/${{ matrix.arch }} node:18 -alpine -c "\
127
132
apk add build-base git python3 py3-setuptools --update-cache && \
128
133
cd /tmp/project && \
129
134
npm install --ignore-scripts && \
@@ -142,7 +147,7 @@ jobs:
142
147
- uses : actions/checkout@v4
143
148
- uses : docker/setup-qemu-action@v3
144
149
- run : |
145
- docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/${{ matrix.arch }} node:16 -c "\
150
+ docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/${{ matrix.arch }} node:18 -c "\
146
151
cd /tmp/project && \
147
152
npm install --ignore-scripts && \
148
153
${{ env.NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}"
0 commit comments