Skip to content

AUS-4186

AUS-4186 #247

Workflow file for this run

name: Build and archive
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list
- name: npm install and npm run CI commands
run: |
npm i
npm run build-dev
- name: Zip artifact for deployment
run: zip release.zip ./dist/* -r
- name: file bundle artifact
if: contains(github.ref, 'master')
uses: actions/upload-artifact@v2
with:
name: portal UI dev bundle
path: release.zip