-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from DependencyTrack/port-pr-927
Raise baseline Node version to 20
- Loading branch information
Showing
9 changed files
with
10 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,6 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
node-versions: | ||
type: string | ||
required: false | ||
default: '["18"]' | ||
description: 'Stringified JSON Array of node versions to build against' | ||
node-version-package: | ||
type: string | ||
required: false | ||
default: '18' | ||
description: 'Set which version of node the container packaged dist should be based on. (MUST be part of the node-versions)' | ||
app-version: | ||
type: string | ||
required: false | ||
|
@@ -35,19 +25,14 @@ jobs: | |
build-node: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
node-version: ${{ fromJson(inputs.node-versions) }} | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
|
||
- name: Set up NodeJs | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: '20' | ||
cache: 'npm' | ||
|
||
- name: Run Npm Build | ||
|
@@ -60,7 +45,7 @@ jobs: | |
- name: Upload Artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: assembled-frontend-node${{ matrix.node-version }} | ||
name: assembled-frontend | ||
path: |- | ||
dist/ | ||
bom.* | ||
|
@@ -80,7 +65,7 @@ jobs: | |
- name: Download Artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: assembled-frontend-node${{ inputs.node-version-package }} | ||
name: assembled-frontend | ||
|
||
- name: Set up QEMU | ||
uses: docker/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ jobs: | |
- name: Download Artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: assembled-frontend-node18 | ||
name: assembled-frontend | ||
|
||
- name: Create Checksums | ||
run: |- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
- name: Set up NodeJs | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '18' | ||
node-version: '20' | ||
cache: 'npm' | ||
|
||
- name: Bump version and tag via NodeJS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,6 @@ on: | |
permissions: | ||
contents: read | ||
|
||
env: | ||
NODE_VERSION: 18 | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
|
@@ -26,7 +23,7 @@ jobs: | |
- name: Set up NodeJs | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
node-version: '20' | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,6 @@ on: | |
permissions: | ||
contents: read | ||
|
||
env: | ||
NODE_VERSION: 18 | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
@@ -26,7 +23,7 @@ jobs: | |
- name: Set up NodeJs | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
node-version: '20' | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
20 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ | |
"not ie <= 10" | ||
], | ||
"engines": { | ||
"node": ">= 18", | ||
"node": ">= 20", | ||
"npm": ">= 9" | ||
} | ||
} |