archiewood / baby-tracker

A newborn tracking app that ingests data from the Huckleberry App and compares it to various health guidelines.
https://baby-tracker.evidence.app
2 stars 0 forks source link

Sweep: Add test build #20

Closed archiewood closed 2 weeks ago

archiewood commented 2 weeks ago

Add a GH action that runs npm run sources and npm run build on merges and PRs to main branch

sweep-ai[bot] commented 2 weeks ago

🚀 Here's the PR! #24

💎 Sweep Pro: You have unlimited Sweep issues

Actions

Relevant files (click to expand). Mentioned files will always appear here. https://github.com/archiewood/baby-tracker/blob/fc80f5377a1c0536267dcc28c754fd68a90c417c/README.md#L1-L55

Step 2: ⌨️ Coding

.github/workflows/build.yml

1. This file will define a new GitHub Actions workflow that runs on push and pull request events to the main branch. It should: - Have a descriptive name - Run on the latest Ubuntu version - Check out the code - Install Node.js - Run `npm ci`, `npm run sources` and `npm run build` 2. name: Build on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Use Node.js uses: actions/setup-node@v3 with: node-version: '18.x' - run: npm ci - run: npm run sources - run: npm run build

Step 3: 🔄️ Validating

Your changes have been successfully made to the branch sweep/add_test_build. I have validated these changes using a syntax checker and a linter.


[!TIP] To recreate the pull request, edit the issue title or description.

This is an automated message generated by Sweep AI.