diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 57882d04..bf62ea8e 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -32,7 +32,7 @@ jobs: aws-region: ${{ env.AWS_REGION }} - name: Install and build all package dependencies - run: npm ci + run: npm ci --omit=optional - name: Test cdk deployment run: npm run test:cdk \ No newline at end of file diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 267a707c..c61cf9b7 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -40,7 +40,7 @@ jobs: curl -sSf https://atlasgo.sh | sh - name: Install and build all package dependencies - run: npm ci + run: npm ci --omit=optional - name: Deploy cdk infrastructure run: npm run deploy:cdk diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 17c9b835..c52cddc5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ jobs: # curl -sSf https://atlasgo.sh | sh - name: Install and build all package dependencies - run: npm ci + run: npm ci --omit=optional - name: Deploy CDK infrastructure run: npm run deploy:cdk diff --git a/.github/workflows/sandbox.yml b/.github/workflows/sandbox.yml index ed7e65e3..230e4ec1 100644 --- a/.github/workflows/sandbox.yml +++ b/.github/workflows/sandbox.yml @@ -43,7 +43,7 @@ jobs: curl -sSf https://atlasgo.sh | sh - name: Install and build all package dependencies - run: npm ci + run: npm ci --omit=optional env: PUBLIC_STAGE: ${{ env.STAGE }} diff --git a/services/blog/Dockerfile b/services/blog/Dockerfile index e034a2bd..64664312 100644 --- a/services/blog/Dockerfile +++ b/services/blog/Dockerfile @@ -10,7 +10,7 @@ RUN apk add --no-cache git COPY . . # Install dependencies -RUN npm install --ignore-scripts +RUN npm i --omit=optional --ignore-scripts # Build the blog service RUN npm run build --workspace @casimir/blog diff --git a/services/users/Dockerfile b/services/users/Dockerfile index 1e871e5c..0db7a4c1 100644 --- a/services/users/Dockerfile +++ b/services/users/Dockerfile @@ -10,7 +10,7 @@ RUN apk add --no-cache git COPY . . # Install dependencies -RUN npm install --ignore-scripts +RUN npm i --omit=optional --ignore-scripts # Build the users service RUN npm run build --workspace @casimir/users