Skip to content

Commit 7a48f30

Browse files
committed
feat(node): refactor build
1 parent b70fab4 commit 7a48f30

File tree

14 files changed

+59
-16
lines changed

14 files changed

+59
-16
lines changed

.github/workflows/node.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@ jobs:
2323
publish:
2424
strategy:
2525
matrix:
26-
version: [latest, "22", "20", "20.10", "18", "18.20"]
26+
version: [latest, "22.15", "20.19", "20.10"]
2727
variant: [prod, shell, dev]
2828
name: ${{ matrix.version }}${{ matrix.variant == 'shell' && '-shell' || matrix.variant == 'dev' && '-dev' || '' }}
2929
uses: './.github/workflows/release.yaml'
3030
with:
3131
tag: ${{ matrix.version }}${{ matrix.variant == 'shell' && '-shell' || matrix.variant == 'dev' && '-dev' || '' }}
32-
target: ${{ matrix.variant }}
33-
packages: >-
34-
${{ matrix.version != 'latest' && format('nodejs~{0}', matrix.version) || '' }}
32+
target: ${{ format('{0}/{1}', matrix.version, matrix.variant) }}
3533
secrets: inherit

images/node/20.10/dev.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include: images/node/dev.yaml
2+
3+
contents:
4+
packages:
5+
- nodejs~20.10
6+
- npm~9

images/node/20.10/prod.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include: images/node/prod.yaml
2+
3+
contents:
4+
packages:
5+
- nodejs~20.10

images/node/20.10/shell.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include: images/node/shell.yaml
2+
3+
contents:
4+
packages:
5+
- nodejs~20.10

images/node/20.19/dev.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include: images/node/dev.yaml
2+
3+
contents:
4+
packages:
5+
- nodejs~20.19
6+
- npm~9

images/node/20.19/prod.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include: images/node/prod.yaml
2+
3+
contents:
4+
packages:
5+
- nodejs~20.10

images/node/20.19/shell.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include: images/node/shell.yaml
2+
3+
contents:
4+
packages:
5+
- nodejs~20.19

images/node/22.15/dev.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include: images/node/dev.yaml
2+
3+
contents:
4+
packages:
5+
- nodejs~22.15
6+
- npm~10

images/node/22.15/prod.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include: images/node/prod.yaml
2+
3+
contents:
4+
packages:
5+
- nodejs~22.15

images/node/22.15/shell.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
include: images/node/shell.yaml
2+
3+
contents:
4+
packages:
5+
- nodejs~22.15

0 commit comments

Comments
 (0)