Skip to content

Add deterministic module IDs for consistent webpack builds across platforms #148

Add deterministic module IDs for consistent webpack builds across platforms

Add deterministic module IDs for consistent webpack builds across platforms #148

Workflow file for this run

# This workflow verifies lib/main.js has latest changes from src/*.ts
on: pull_request
jobs:
check-lib:
name: Build main.js and diff
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v4
- name: Validate build
run: |
npm install
npm run build
- name: Check if main.js has differences
run: echo "diff=$(git diff --ignore-space-at-eol --text lib/main.js | wc -l)" >> $GITHUB_ENV
# If main.js was different than expected, upload the actual version
- name: Upload actual main.js
if: ${{ env.diff > 0}}
uses: actions/upload-artifact@v4
with:
name: main.js
path: lib/main.js