File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 echo "matrix=$MATRIX_JSON" >> $GITHUB_OUTPUT
3232 docker :
3333 runs-on : ubuntu-latest
34+ needs : generate-matrix
3435 strategy :
3536 fail-fast : false
3637 matrix : ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
Original file line number Diff line number Diff line change @@ -59,9 +59,6 @@ CONSOLE_BASE_URL 这个环境变量需要特殊注意一下,console 服务在
5959| WSS_PORT | xtransit-server 服务的监听端口 | 9190 | 否 |
6060
6161## 版本
62- > ` x.y.z ` 版本号在推送的时候,会级联推送 ` x.y ` 和 ` x ` 版本。
62+ > ` x.y.z ` 版本号在推送的时候,会级联推送 ` x.y ` 和 ` x ` 版本。 应用会自动抓取 node 官方网站中各个 LTS 版本,并级联推送。目前支持 16+ LTS 版本,低于 16 版本的不会推送。
63+
6364
64- - 16.20.2
65- - 18.20.5
66- - 20.18.1
67- - 22.12.0
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ async function get_all_versions() {
66async function printLtsVersions ( versions ) {
77 const include = [ ] ;
88 let firstLts = false ;
9+ const majorVersions = new Set ( ) ;
910 versions . filter ( ( version ) => ! ! version . lts ) . forEach ( ( version ) => {
1011 let latest = false ;
1112 const ltsVersion = version . version
@@ -16,7 +17,8 @@ async function printLtsVersions(versions) {
1617 } else {
1718 latest = false ;
1819 }
19- if ( majorVersion >= 16 ) {
20+ if ( majorVersion >= 16 && ! majorVersions . has ( majorVersion ) ) {
21+ majorVersions . add ( majorVersion ) ;
2022 include . push ( {
2123 'node-version' : ltsVersion ,
2224 'major-version' : majorVersion ,
You can’t perform that action at this time.
0 commit comments