Skip to content

Commit

Permalink
fix: Trigger new NPM major version on changes to static files as well…
Browse files Browse the repository at this point in the history
… as template files
  • Loading branch information
Reikyo authored Nov 13, 2024
1 parent 79b65f0 commit 562ffbb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ jobs:
id: filter
with:
filters: |
src_static:
- 'src/static/**'
src_templates:
- 'src/templates/**'
- name: Increment Version (for security - and CSP asset alignment - every change to the template files is a breaking change)
if: steps.filter.outputs.src_templates == 'true'
if: steps.filter.outputs.src_static == 'true' || steps.filter.outputs.src_templates == 'true'
run: npm version major
- name: Install and Build using incremented version
run: npm ci
Expand Down

0 comments on commit 562ffbb

Please sign in to comment.