Skip to content

Commit

Permalink
Add dynamic node version on build workflow (#5)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
npcopter authored Mar 8, 2024
1 parent 0bae06c commit 726278d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
concurrency-group:
required: false
type: string
node-version:
required: false
type: string

concurrency:
group: ${{ inputs.concurrency-group || github.head_ref }}
Expand All @@ -22,6 +25,9 @@ jobs:
run:
shell: bash
steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ inputs.node-version || '16'}}
- uses: vtno/seaeye/.github/actions/[email protected]
with:
working-dir: ${{ inputs.working-dir }}
Expand All @@ -34,6 +40,9 @@ jobs:
run:
shell: bash
steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ inputs.node-version || '16'}}
- uses: vtno/seaeye/.github/actions/[email protected]
with:
working-dir: ${{ inputs.working-dir }}
Expand All @@ -46,6 +55,9 @@ jobs:
run:
shell: bash
steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ inputs.node-version || '16'}}
- uses: vtno/seaeye/.github/actions/[email protected]
with:
working-dir: ${{ inputs.working-dir }}
Expand All @@ -58,6 +70,9 @@ jobs:
run:
shell: bash
steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ inputs.node-version || '16'}}
- uses: vtno/seaeye/.github/actions/[email protected]
with:
working-dir: ${{ inputs.working-dir }}

0 comments on commit 726278d

Please sign in to comment.