Skip to content

Commit 726278d

Browse files
authored
Add dynamic node version on build workflow (#5)
* feat: add dynamic node version on buidl workflow * test: add test for build with node version * test: add test only on pr * test: remove trigger on merge to main * test: fix source workflow * test: test without node version * test: change version to branch instead * test: add test for node version * test: remove pull request action
1 parent 0bae06c commit 726278d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
concurrency-group:
1010
required: false
1111
type: string
12+
node-version:
13+
required: false
14+
type: string
1215

1316
concurrency:
1417
group: ${{ inputs.concurrency-group || github.head_ref }}
@@ -22,6 +25,9 @@ jobs:
2225
run:
2326
shell: bash
2427
steps:
28+
- uses: actions/setup-node@v2
29+
with:
30+
node-version: ${{ inputs.node-version || '16'}}
2531
- uses: vtno/seaeye/.github/actions/[email protected]
2632
with:
2733
working-dir: ${{ inputs.working-dir }}
@@ -34,6 +40,9 @@ jobs:
3440
run:
3541
shell: bash
3642
steps:
43+
- uses: actions/setup-node@v2
44+
with:
45+
node-version: ${{ inputs.node-version || '16'}}
3746
- uses: vtno/seaeye/.github/actions/[email protected]
3847
with:
3948
working-dir: ${{ inputs.working-dir }}
@@ -46,6 +55,9 @@ jobs:
4655
run:
4756
shell: bash
4857
steps:
58+
- uses: actions/setup-node@v2
59+
with:
60+
node-version: ${{ inputs.node-version || '16'}}
4961
- uses: vtno/seaeye/.github/actions/[email protected]
5062
with:
5163
working-dir: ${{ inputs.working-dir }}
@@ -58,6 +70,9 @@ jobs:
5870
run:
5971
shell: bash
6072
steps:
73+
- uses: actions/setup-node@v2
74+
with:
75+
node-version: ${{ inputs.node-version || '16'}}
6176
- uses: vtno/seaeye/.github/actions/[email protected]
6277
with:
6378
working-dir: ${{ inputs.working-dir }}

0 commit comments

Comments
 (0)