chore: add CI Badge #18
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: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎️ Checkout code | |
uses: actions/checkout@v4 | |
- name: 📦 Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '21' | |
cache: 'npm' | |
- name: 📥 Install dependencies | |
run: npm ci | |
- name: 🏗️ Build | |
run: | | |
touch .env | |
echo VITE_APP_AIRTABLE_API_KEY=$VITE_APP_AIRTABLE_API_KEY >> .env | |
echo VITE_APP_AIRTABLE_BASE=$VITE_APP_AIRTABLE_BASE >> .env | |
cat .env | |
npm run build | |
env: | |
VITE_APP_AIRTABLE_API_KEY: ${{ secrets.VITE_APP_AIRTABLE_API_KEY }} | |
VITE_APP_AIRTABLE_BASE: ${{ secrets.VITE_APP_AIRTABLE_BASE }} |