Add --if-present flag to prevent error when sass script does not exists

Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
Louis Chemineau 2022-06-01 09:00:22 +02:00
parent e6177afeda
commit 9566fb8007
1 changed files with 2 additions and 2 deletions

View File

@ -87,10 +87,10 @@ jobs:
npm run build --if-present
- name: Build css
run: npm run sass
run: npm run --if-present sass
- name: Build icons css
run: npm run sass:icons
run: npm run --if-present sass:icons
- name: Commit and push default
if: ${{ needs.init.outputs.arg1 != 'fixup' && needs.init.outputs.arg1 != 'amend' }}