diff --git a/.github/actions/build-node/action.yml b/.github/actions/build-node/action.yml index 6389b08e..81af5ff2 100644 --- a/.github/actions/build-node/action.yml +++ b/.github/actions/build-node/action.yml @@ -91,7 +91,7 @@ runs: path: ./yarn.lock - name: Webpack build if: inputs.run_webpack == 'true' - run: npm run webpack:prod + run: npm run bundle:prod || npm run webpack:prod shell: bash - uses: actions/upload-artifact@v3 if: inputs.run_webpack == 'true' diff --git a/.github/workflows/build-node-python.yml b/.github/workflows/build-node-python.yml index 0c9acb2d..3c9fae81 100644 --- a/.github/workflows/build-node-python.yml +++ b/.github/workflows/build-node-python.yml @@ -196,8 +196,8 @@ jobs: make env_decrypt || true env: ENV_PASSWORD: ${{ secrets.ENV_PASSWORD }} - - name: Webpack dev build - run: npm run webpack:dev + - name: Bundle build + run: npm run bundle:prod || npm run webpack:dev shell: bash - name: Run cypress e2e tests uses: cypress-io/github-action@v6 @@ -292,8 +292,8 @@ jobs: make env_decrypt || true env: ENV_PASSWORD: ${{ secrets.ENV_PASSWORD }} - - name: Webpack dev build - run: npm run webpack:dev + - name: Bundle build + run: npm run bundle:prod || npm run webpack:dev shell: bash - name: Install playwright browsers run: yarn playwright install --with-deps chromium diff --git a/.github/workflows/build-single-product-part.yml b/.github/workflows/build-single-product-part.yml index 513ea9bd..5e9a6f4f 100644 --- a/.github/workflows/build-single-product-part.yml +++ b/.github/workflows/build-single-product-part.yml @@ -201,7 +201,7 @@ jobs: touch ./yarn.lock yarn install --no-immutable yarn info --name-only - yarn run webpack:prod + yarn run bundle:prod || yarn run webpack:prod env: COMPONENT: ${{ inputs.component }} APP: ${{ steps.get-parameters.outputs.app }}