Skip to content

Merge pull request #1835 from laws-africa/relationships #1056

Merge pull request #1835 from laws-africa/relationships

Merge pull request #1835 from laws-africa/relationships #1056

Workflow file for this run

name: Build
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
name: Compile javascript and commit changes
steps:
- uses: actions/checkout@v2
with:
# use a token that has admin perms to bypass direct commits to master
token: ${{ secrets.LA_ACTIONS_TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: npm ci --no-audit --prefer-offline --ignore-scripts
- name: Build
run: npx webpack --mode production
- name: Push
uses: EndBug/add-and-commit@v7
with:
add: 'peachjam/static/js/*app-prod.js peachjam/static/js/pdf.worker-prod.js --force'
message: 'Update compiled javascript'