mirror of https://gitlab.com/curben/blog
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:
parent
380b40b548
commit
81fac2ef57
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue