From ceb619a5285084962e7bc24a974ed1f95c4b39a3 Mon Sep 17 00:00:00 2001 From: Roel van Hintum Date: Thu, 18 Jul 2024 16:29:53 +0200 Subject: [PATCH] Revert "update npm install and build to current versions" This reverts commit 20af3461ba4870b4a95814e324d1d175b6ee75ea. --- .github/workflows/deploy-to-do.yml | 6 +++--- action.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-to-do.yml b/.github/workflows/deploy-to-do.yml index 6fb289b..7cefab4 100644 --- a/.github/workflows/deploy-to-do.yml +++ b/.github/workflows/deploy-to-do.yml @@ -41,9 +41,9 @@ jobs: cache: "npm" cache-dependency-path: "./app/package-lock.json" - run: | - npm install --production=false --prefix ./app - npm run build --prefix ./app - npm ci --prefix ./app + npm install --production=false + npm run build + npm ci - run: | docker build -t $IMAGE ./app docker push $IMAGE diff --git a/action.yml b/action.yml index d10846c..e11c177 100644 --- a/action.yml +++ b/action.yml @@ -40,9 +40,9 @@ runs: env: APP_IMAGE: registry.digitalocean.com/${{ github.repository }}:app-${{ github.ref_type == 'tag' && github.ref_name || 'latest' }} run: | - npm install --production=false --prefix ./app + npm ci --include=dev --prefix ./app npm run build --prefix ./app - npm ci --prefix ./app + npm prune --omit=dev --prefix ./app docker build -t $APP_IMAGE ./app docker push $APP_IMAGE