Merge pull request #1997 from laws-africa/fix-work-task-detail-view #368
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: Build | |
on: | |
push: | |
branches: | |
- master | |
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 javascript | |
run: npx webpack | |
- name: Copy node dependencies | |
# Keep the local copy of some node dependencies up to date | |
# indigo-web: only used for PDF exports | |
# monaco-editor | |
run: | | |
cp -R node_modules/indigo-web/scss indigo_app/static/lib/indigo-web/ | |
cp -R node_modules/monaco-editor/min/vs/{base,basic-languages,editor,loader.js} indigo_app/static/lib/monaco-editor/ | |
- name: Push | |
uses: EndBug/add-and-commit@v7 | |
with: | |
add: 'indigo_app/static/javascript/indigo/bluebell-monaco.js indigo_app/static/lib/external-imports.js indigo_app/static/javascript/indigo-app.js indigo_app/static/lib/indigo-web/ indigo/analysis/refs/provision_refs.py --force' | |
message: 'Update compiled bluebell-monaco.js, external-imports.js and indigo-app.js' |