From 81fac2ef57a8488b265092fc74929e0d0289a3a3 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Fri, 7 Jun 2024 10:43:36 +0000 Subject: [PATCH] build: --force flag to install optional deps of child deps required by https://github.com/curbengh/hexo-yam#cannot-find-module-mongodb-jszstd-linux-x64-gnu --- .github/workflows/pages.yml | 4 ++-- .gitlab-ci.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 35a820e..a587ae9 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -13,7 +13,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3 with: - node-version-file: '.nvmrc' + node-version-file: ".nvmrc" - name: Cache NPM dependencies uses: actions/cache@v3 with: @@ -22,7 +22,7 @@ jobs: restore-keys: | ${{ runner.OS }}-npm-cache - name: Install Dependencies - run: npm install + run: npm install --include=optional --force - name: Build run: npm run build - name: Deploy diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 40f1f61..08a45ce 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,7 +13,7 @@ build: before_script: - apk update && apk add git - - npm install + - npm install --include=optional --force script: # Generate site