From 623274be1fb16ba148bbe7cdfad4b683c2106096 Mon Sep 17 00:00:00 2001 From: Robert Ennis Date: Wed, 21 Aug 2024 15:02:31 +0200 Subject: [PATCH] update github workflows to accomodate importing code snippets from a gist (as submodule) - relevant for IMU alpha lab and later articles --- .github/workflows/PR-checks.yml | 3 ++- .github/workflows/build-deploy-production.yml | 3 ++- .github/workflows/build-deploy-staging.yml | 3 ++- .github/workflows/build-only.yml | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/PR-checks.yml b/.github/workflows/PR-checks.yml index ec237fd3e..bab62093d 100644 --- a/.github/workflows/PR-checks.yml +++ b/.github/workflows/PR-checks.yml @@ -27,9 +27,10 @@ jobs: working-directory: ./${{ matrix.component }} run: npm install - - name: Copy node_modules + - name: Copy node_modules & init submodules shell: bash run: | + git submodule update --init --recursive cp -r ${{ matrix.component }}/node_modules . ls -la diff --git a/.github/workflows/build-deploy-production.yml b/.github/workflows/build-deploy-production.yml index 682612ab0..17aa6638a 100644 --- a/.github/workflows/build-deploy-production.yml +++ b/.github/workflows/build-deploy-production.yml @@ -122,9 +122,10 @@ jobs: run: npm install # Copy node modules to provide dependencies for shared components in root folder - - name: Copy node_modules + - name: Copy node_modules & init submodules shell: bash run: | + git submodule update --init --recursive cp -r alpha-lab/node_modules . ls -la diff --git a/.github/workflows/build-deploy-staging.yml b/.github/workflows/build-deploy-staging.yml index 92b61a2bf..4d425cee1 100644 --- a/.github/workflows/build-deploy-staging.yml +++ b/.github/workflows/build-deploy-staging.yml @@ -120,9 +120,10 @@ jobs: run: npm install # Copy node modules to provide dependencies for shared components in root folder - - name: Copy node_modules + - name: Copy node_modules & init submodules shell: bash run: | + git submodule update --init --recursive cp -r alpha-lab/node_modules . ls -la diff --git a/.github/workflows/build-only.yml b/.github/workflows/build-only.yml index cab837c5e..449e4244e 100644 --- a/.github/workflows/build-only.yml +++ b/.github/workflows/build-only.yml @@ -120,9 +120,10 @@ jobs: run: npm install # Copy node modules to provide dependencies for shared components in root folder - - name: Copy node_modules + - name: Copy node_modules & init submodules shell: bash run: | + git submodule update --init --recursive cp -r alpha-lab/node_modules . ls -la