From a0cfa3e27c82367a922db4c65431ef7619ee2e4c Mon Sep 17 00:00:00 2001 From: Victoria <32179813+victoriafomina@users.noreply.github.com> Date: Tue, 17 Jan 2023 12:10:42 +0300 Subject: [PATCH 1/5] Run build only on PR --- .github/workflows/build-utbot-site.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build-utbot-site.yml b/.github/workflows/build-utbot-site.yml index fa4038a2..5956a653 100644 --- a/.github/workflows/build-utbot-site.yml +++ b/.github/workflows/build-utbot-site.yml @@ -1,7 +1,5 @@ name: Build Site on: - push: - branches: [source] pull_request: branches: [source] From 332c8f42499022bc4cec1e27be6f452c500e3644 Mon Sep 17 00:00:00 2001 From: Victoria <32179813+victoriafomina@users.noreply.github.com> Date: Tue, 17 Jan 2023 12:12:52 +0300 Subject: [PATCH 2/5] Build with node 18 --- .github/workflows/build-utbot-site.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-utbot-site.yml b/.github/workflows/build-utbot-site.yml index 5956a653..4cdea6ad 100644 --- a/.github/workflows/build-utbot-site.yml +++ b/.github/workflows/build-utbot-site.yml @@ -1,5 +1,6 @@ name: Build Site on: + workflow_dispatch: pull_request: branches: [source] @@ -8,22 +9,22 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '18' - name: Install dependencies run: | set -o xtrace npm install -g yarn npm install -g gatsby-cli - sudo apt-get install python3 - name: Install packages run: | set -o xtrace npm install yarn + - name: Build UTBot Site run: npm run build From 47ebd67046d54556dee9cfd5edc4fac110a5a0b3 Mon Sep 17 00:00:00 2001 From: Victoria <32179813+victoriafomina@users.noreply.github.com> Date: Tue, 17 Jan 2023 12:14:48 +0300 Subject: [PATCH 3/5] Upgrade node to 18 version in build and deploy workflow --- .github/workflows/build-and-deploy-utbot-site.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-deploy-utbot-site.yml b/.github/workflows/build-and-deploy-utbot-site.yml index 851a76b9..ac16afa8 100644 --- a/.github/workflows/build-and-deploy-utbot-site.yml +++ b/.github/workflows/build-and-deploy-utbot-site.yml @@ -8,16 +8,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '18' - name: Install dependencies run: | set -o xtrace npm install -g yarn npm install -g gatsby-cli - sudo apt-get install python3 - name: Install packages run: | From ccf6f1874b34e1409aedda68d1d9c2a77668fcf6 Mon Sep 17 00:00:00 2001 From: Victoria <32179813+victoriafomina@users.noreply.github.com> Date: Tue, 17 Jan 2023 12:28:10 +0300 Subject: [PATCH 4/5] Npm install with force --- .github/workflows/build-utbot-site.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-utbot-site.yml b/.github/workflows/build-utbot-site.yml index 4cdea6ad..08ef52f4 100644 --- a/.github/workflows/build-utbot-site.yml +++ b/.github/workflows/build-utbot-site.yml @@ -22,7 +22,7 @@ jobs: - name: Install packages run: | set -o xtrace - npm install + npm install --force yarn - name: Build UTBot Site From 53f51db55109239650b9de8cd9384cf40a126a2a Mon Sep 17 00:00:00 2001 From: Victoria <32179813+victoriafomina@users.noreply.github.com> Date: Tue, 17 Jan 2023 12:28:54 +0300 Subject: [PATCH 5/5] Build and deploy workflow: npm i with force --- .github/workflows/build-and-deploy-utbot-site.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy-utbot-site.yml b/.github/workflows/build-and-deploy-utbot-site.yml index ac16afa8..d7a5d30a 100644 --- a/.github/workflows/build-and-deploy-utbot-site.yml +++ b/.github/workflows/build-and-deploy-utbot-site.yml @@ -21,7 +21,7 @@ jobs: - name: Install packages run: | set -o xtrace - npm install + npm install --force yarn - name: Build UTBot Site