Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
Add GitHub Actions CI and release workflows
Adam Eivyc002ed77c40b
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlnew file mode 100644index 0000000000..c7ee98fea3--- /dev/null+++ b/.github/workflows/ci.yml@@ -0,0 +1,61 @@+name: CI++on:+ pull_request:+ branches: [main, dev]+ push:+ branches: [dev]++jobs:+ test:+ runs-on: ubuntu-latest++ strategy:+ matrix:+ node-version: [20.x]++ steps:+ - uses: actions/checkout@v4++ - name: Use Node.js ${{ matrix.node-version }}+ uses: actions/setup-node@v4+ with:+ node-version: ${{ matrix.node-version }}+ cache: 'npm'++ - name: Install root dependencies+ run: npm ci++ - name: Install client dependencies+ working-directory: ./client+ run: npm ci++ - name: Install server dependencies+ working-directory: ./server+ run: npm ci++ - name: Run server tests+ working-directory: ./server+ run: npm test++ - name: Build client+ working-directory: ./client+ run: npm run build++ lint:+ runs-on: ubuntu-latest++ steps:+ - uses: actions/checkout@v4++ - name: Use Node.js 20.x+ uses: actions/setup-node@v4+ with:+ node-version: 20.x+ cache: 'npm'++ - name: Install dependencies+ run: npm run install:all++ - name: Check for syntax errors+ run: node --check server/index.jsdiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlnew file mode 100644index 0000000000..baa5d4b595--- /dev/null+++ b/.github/workflows/release.yml@@ -0,0 +1,74 @@+name: Release++on:+ push:+ branches: [main]++jobs:+ release:+ runs-on: ubuntu-latest++ # Only run if the commit message doesn't already contain [skip release]+ if: "!contains(github.event.head_commit.message, '[skip release]')"++ steps:+ - uses: actions/checkout@v4+ with:+ fetch-depth: 0++ - name: Use Node.js 20.x+ uses: actions/setup-node@v4+ with:+ node-version: 20.x++ - name: Get version from package.json+ id: package-version+ run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT++ - name: Check if tag exists+ id: tag-check+ run: |+ if git rev-parse "v${{ steps.package-version.outputs.version }}" >/dev/null 2>&1; then+ echo "exists=true" >> $GITHUB_OUTPUT+ else+ echo "exists=false" >> $GITHUB_OUTPUT+ fi++ - name: Generate changelog+ id: changelog+ if: steps.tag-check.outputs.exists == 'false'+ run: |+ # Get the previous tag or use initial commit+ PREV_TAG=$(git describe --tags --abbrev=0 2>/dev/null || git rev-list --max-parents=0 HEAD)++ # Generate changelog from commits+ CHANGELOG=$(git log $PREV_TAG..HEAD --pretty=format:"- %s" --no-merges | head -50)++ # Handle multiline output+ echo "changelog<<EOF" >> $GITHUB_OUTPUT+ echo "$CHANGELOG" >> $GITHUB_OUTPUT+ echo "EOF" >> $GITHUB_OUTPUT++ - name: Create Release+ if: steps.tag-check.outputs.exists == 'false'+ uses: softprops/action-gh-release@v2+ with:+ tag_name: v${{ steps.package-version.outputs.version }}+ name: v${{ steps.package-version.outputs.version }}+ body: |+ ## Changes++ ${{ steps.changelog.outputs.changelog }}++ ## Installation++ ```bash+ git clone https://github.com/atomantic/PortOS.git+ cd PortOS+ npm run install:all+ pm2 start ecosystem.config.cjs+ ```+ draft: false+ prerelease: false+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}diff --git a/PLAN.md b/PLAN.mdindex 613a32d6f4..3c5adf3f6b 100644--- a/PLAN.md+++ b/PLAN.md@@ -39,6 +39,16 @@ pm2 logs- Favor functional components and hooks over class components- Use Tailwind for all styling+### Git Workflow+- **`dev`** - Development branch, all features branch from here+- **`main`** - Production branch, releases only+- **Release Process**:+ 1. Work on `dev` branch (or feature branches merged to `dev`)+ 2. Create PR from `dev` to `main`+ 3. CI runs tests on PR+ 4. On merge, GitHub Action creates a release with version from `package.json`+- Bump version in `package.json` before merging to `main`+---## M4: App Wizard (Detailed)