From ad6049d34dfc0a33860e035a7ff12ca1faf4b642 Mon Sep 17 00:00:00 2001 From: g0t2bfree <124814445+g0t2bfree@users.noreply.github.com> Date: Mon, 25 Sep 2023 22:27:51 -0400 Subject: [PATCH 1/4] Create node.js.yml --- .github/workflows/node.js.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..eb4d9d5 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,31 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test From 7448e9ef23c84dccf01884f7e869d05e47df8c34 Mon Sep 17 00:00:00 2001 From: g0t2bfree <124814445+g0t2bfree@users.noreply.github.com> Date: Sun, 1 Oct 2023 00:06:52 -0400 Subject: [PATCH 2/4] Create deployment3.yml --- .github/workflows/deployment3.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deployment3.yml diff --git a/.github/workflows/deployment3.yml b/.github/workflows/deployment3.yml new file mode 100644 index 0000000..c01458c --- /dev/null +++ b/.github/workflows/deployment3.yml @@ -0,0 +1,31 @@ +name: "SWD Deployment 1" + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js 16.x + uses: actions/setup-node@v2 + with: + node-version: 16.x + cache: "npm" + cache-dependency-path: package-lock.json + - name: Install dependencies + run: npm install + - name: Build file + run: npm run build + + - name: Deploy production to Netlify + uses: South-Paw/action-netlify-deploy@v1.2.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }} + netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }} + build-dir: "./build" + comment-on-commit: false From b14170507e29149f837718355425fe2e32b0ddd6 Mon Sep 17 00:00:00 2001 From: g0t2bfree <124814445+g0t2bfree@users.noreply.github.com> Date: Sun, 1 Oct 2023 01:13:50 -0400 Subject: [PATCH 3/4] Create deployment1.yml --- .github/workflows/deployment1.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deployment1.yml diff --git a/.github/workflows/deployment1.yml b/.github/workflows/deployment1.yml new file mode 100644 index 0000000..c01458c --- /dev/null +++ b/.github/workflows/deployment1.yml @@ -0,0 +1,31 @@ +name: "SWD Deployment 1" + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Use Node.js 16.x + uses: actions/setup-node@v2 + with: + node-version: 16.x + cache: "npm" + cache-dependency-path: package-lock.json + - name: Install dependencies + run: npm install + - name: Build file + run: npm run build + + - name: Deploy production to Netlify + uses: South-Paw/action-netlify-deploy@v1.2.0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }} + netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }} + build-dir: "./build" + comment-on-commit: false From 2d64818c1081280daf5a96e48ddc68eae5982167 Mon Sep 17 00:00:00 2001 From: g0t2bfree <124814445+g0t2bfree@users.noreply.github.com> Date: Sun, 1 Oct 2023 01:21:46 -0400 Subject: [PATCH 4/4] Update deployment1.yml --- .github/workflows/deployment1.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deployment1.yml b/.github/workflows/deployment1.yml index c01458c..f9af498 100644 --- a/.github/workflows/deployment1.yml +++ b/.github/workflows/deployment1.yml @@ -1,4 +1,4 @@ -name: "SWD Deployment 1" +name: "SWD Deployment Notes" on: push: