mirror of
https://github.com/Dasemu/meta-social-mcp.git
synced 2026-11-26 15:26:23 +00:00
chore: bootstrap Claude setup
Add root CLAUDE.md, LESSONS.md, docs/ index, .claude hooks (syntax-check on edit/write and on stop, since no linter/test suite is configured yet), CI/version GitHub Actions workflows scoped to the existing master branch, and translate .env.example comments to English. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7be83fd764
commit
a1758b40b8
8 files changed
+154
-13
No files matched your search
@@ -0,0 +1,28 @@
|
||||
name: CI
|
||||
|
||||
# This repo currently only has a `master` branch (no `development`/`main` split yet).
|
||||
# Update these triggers if/when the standard `development`/`main` branches are introduced.
|
||||
on:
|
||||
pull_request:
|
||||
branches: [master]
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
cache: "npm"
|
||||
|
||||
- run: npm ci
|
||||
|
||||
# No linter or test suite is configured in package.json yet; this is the quickest
|
||||
# meaningful check available (catches syntax errors in every source file).
|
||||
- name: Syntax check
|
||||
run: |
|
||||
for f in $(find src -name '*.js'); do node --check "$f"; done
|
||||
@@ -0,0 +1,34 @@
|
||||
name: Version
|
||||
|
||||
# Simplified for now: this repo only has a `master` branch (no `development`/`main` split yet).
|
||||
# Once that split exists, update this to the full development→main bump rules described in the
|
||||
# global CLAUDE.md (PATCH bump on push to development, MINOR bump + PATCH reset on an approved
|
||||
# development→main PR, PATCH bump on a direct hotfix push to main).
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
bump:
|
||||
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && github.actor != 'github-actions[bot]' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
|
||||
- name: Bump patch version
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
npm version patch --no-git-tag-version
|
||||
VERSION=$(node -p "require('./package.json').version")
|
||||
git commit -am "chore(release): v${VERSION} [skip ci]"
|
||||
git push
|
||||
Reference in new issue
Block a user