add. pre commit hook and update tests (#157) #10
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 and Release | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build-release: | |
name: Build the web app and make a zip release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout to repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js 16.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "16.x" | |
- name: Install dependencies | |
run: yarn install | |
- name: Run tests | |
run: yarn test | |
- name: Build the app | |
run: yarn build-prod | |
- name: Zip the build | |
run: zip -r person-management-app.zip build | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: Build ${{ github.run_number }} | |
tag_name: v-${{ github.run_number }} | |
files: person-management-app.zip | |
token: ${{secrets.BAHMNI_PAT}} |