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
This commit is contained in:
Ming Di Leom 2024-06-07 10:43:36 +00:00
parent 380b40b548
commit 81fac2ef57
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ jobs:
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version-file: '.nvmrc' node-version-file: ".nvmrc"
- name: Cache NPM dependencies - name: Cache NPM dependencies
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -22,7 +22,7 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.OS }}-npm-cache ${{ runner.OS }}-npm-cache
- name: Install Dependencies - name: Install Dependencies
run: npm install run: npm install --include=optional --force
- name: Build - name: Build
run: npm run build run: npm run build
- name: Deploy - name: Deploy

View File

@ -13,7 +13,7 @@ build:
before_script: before_script:
- apk update && apk add git - apk update && apk add git
- npm install - npm install --include=optional --force
script: script:
# Generate site # Generate site