Tweak the deployment to improve local dev experience #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Monitor bundle size | |
on: | |
pull_request: | |
branches: ["**"] | |
types: [synchronize, opened, reopened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout current branch (full) | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "17.6.0" | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: sbt | |
- run: | | |
npm install | |
npm run build | |
working-directory: ./modules/frontend | |
- name: Run BundleMon | |
working-directory: ./modules/frontend | |
run: ./node_modules/.bin/bundlemon | |
env: | |
CI_COMMIT_SHA: ${{github.event.pull_request.head.sha || github.sha}} # important! |