Develop to Master branch (#1) #2
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: Package Prod | |
on: | |
push: | |
branches: [ "master"] | |
jobs: | |
Package: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Build with NPM and Create WAR file | |
run: | | |
npm config set legacy-peer-deps true | |
npm install -g @angular/cli | |
npm install -g grunt-cli | |
npm install [email protected] --save-dev | |
npm install [email protected] | |
npm install node-sass --force | |
npm install --force | |
ng build --configuration production | |
- name: Upload WAR file as artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: HWC-UI | |
path: dist/hwc-ui-next/hwc-ui-next.war |