Workflow file for this run
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: Create production-ready build | |
on: | |
pull_request: | |
branches: [main, release/**, 'system-dapp-ci-1stattempt'] | |
push: | |
branches: [main, release/**, 'system-dapp-ci-1stattempt'] | |
tags: [v*] | |
env: | |
OWNER: hashgraph | |
PACKAGE_NAME: hedera-smart-contracts | |
REGISTRY: ghcr.io | |
jobs: | |
production-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Use Node.js [18.15] | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.15 | |
- name: Install dependencies | |
run: npm install | |
- name: Create production-ready build | |
run: | | |
cd ./system-contract-dapp-playground | |
npm install | |
npm run build | |
if npm run lint -- --quiet; then | |
echo "No warnings found" | |
else | |
echo "Warnings found in the code" | |
exit 1 # Exit with a non-zero status code to fail the CI check | |
fi |