From 759220f6c6f2d759f90f89a89b2a0413067cfd88 Mon Sep 17 00:00:00 2001 From: Jamie Sinn Date: Tue, 2 Jul 2024 16:45:28 -0400 Subject: [PATCH 1/3] GHA - Build UI --- .github/workflows/webpack.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/webpack.yml diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml new file mode 100644 index 0000000..80d379f --- /dev/null +++ b/.github/workflows/webpack.yml @@ -0,0 +1,29 @@ +name: Build UI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Build + working-directory: ./ui + run: | + npm install + npm run build From f37e04abc8bfd329f237488f62c00106ed9b175f Mon Sep 17 00:00:00 2001 From: Jamie Sinn Date: Tue, 2 Jul 2024 16:46:28 -0400 Subject: [PATCH 2/3] Change versions and file name based on trigger --- .github/workflows/{webpack.yml => main-push-pr.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{webpack.yml => main-push-pr.yml} (91%) diff --git a/.github/workflows/webpack.yml b/.github/workflows/main-push-pr.yml similarity index 91% rename from .github/workflows/webpack.yml rename to .github/workflows/main-push-pr.yml index 80d379f..4b98954 100644 --- a/.github/workflows/webpack.yml +++ b/.github/workflows/main-push-pr.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [18.x, 20.x] steps: - uses: actions/checkout@v4 From 11c43b7a3fafa87049357eb1ef206d8ab8422844 Mon Sep 17 00:00:00 2001 From: Jamie Sinn Date: Tue, 2 Jul 2024 16:47:55 -0400 Subject: [PATCH 3/3] NPM only v20 --- .github/workflows/main-push-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main-push-pr.yml b/.github/workflows/main-push-pr.yml index 4b98954..5933421 100644 --- a/.github/workflows/main-push-pr.yml +++ b/.github/workflows/main-push-pr.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - node-version: [18.x, 20.x] + node-version: [20.x] steps: - uses: actions/checkout@v4