Skip to content

Commit c39c375

Browse files
committed
fix(ci): ignore "*.js.map" files in the Node up-to-date CI check
Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
1 parent 208e95a commit c39c375

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/node.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ jobs:
8686
npm ci
8787
npm run build --if-present
8888
89+
- name: Reset source maps
90+
# Source map `mappings` are non-deterministic across different build environments
91+
# Reset tracked .map files so only JS and license changes are checked.
92+
run: git checkout -- '*.js.map' 2>/dev/null || true
93+
8994
- name: Check build changes
9095
run: |
9196
bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please recompile and commit the assets, see the section \"Show changes on failure\" for details' && exit 1)"

js/app_api-adminSettings.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)