Merge branch 'master' of https://github.com/Honey-Pi/rpi-webinterface #72
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 | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] # this installs node and npm for us | |
with: | |
node-version: '20.10.0' | |
- uses: actions/[email protected] # this allows for re-using node_modules caching, making builds a bit faster. | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- run: npm install --save --legacy-peer-deps | |
- run: npm install -g @angular/cli > /dev/null | |
- run: ng build --configuration production | |
# push the /dist folder to your repo | |
- name: Commit changes | |
uses: EndBug/[email protected] | |
with: | |
default_author: github_actions | |
message: 'Updating /dist' | |
add: '.' |