fix(ci): resolve release pipeline conflicts and clean repo structure
- Delete conflicting .releaserc.json (keep release.config.cjs as single source) - Fix repo URL from Draculabo/AntigravityManager to evandrodevbr/GeminiNexus - Fix @semantic-release/git to commit pnpm-lock.yaml (not package-lock.json) - Normalize Node.js version to 20 across all workflows - Add packageManager field to package.json for pnpm consistency - Update AGENTS.md: npm -> pnpm (18 references) - Update .gitignore: add tools/, thoughts/, binaries, one-shot scripts
This commit is contained in:
1 parent
713c4497c6
commit
71bf8122d1
7 files changed
+54
-73
No files matched your search
@@ -2,7 +2,7 @@ name: Publish Release
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Release"]
|
||||
workflows: ['Release']
|
||||
types: [completed]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
node-version: 20
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
+29
-1
@@ -125,4 +125,32 @@ cli/aliases.json
|
||||
accounts_backup.json
|
||||
|
||||
# Bun lock file
|
||||
bun.lock
|
||||
bun.lock
|
||||
|
||||
# Build tools (installed via CI)
|
||||
tools/
|
||||
*.zip
|
||||
|
||||
# AI agent session data
|
||||
thoughts/
|
||||
.impeccable.md
|
||||
CLAUDE.md
|
||||
|
||||
# One-shot scripts (already applied)
|
||||
fix-ts.js
|
||||
patch-proxy.js
|
||||
patch-settings.js
|
||||
rename-deep.js
|
||||
test-process.ts
|
||||
|
||||
# Legacy CLI launchers
|
||||
agm.bat
|
||||
run_cli.bat
|
||||
|
||||
# Nix (not used)
|
||||
flake.nix
|
||||
flake.lock
|
||||
|
||||
# Planning/spec data
|
||||
.planning/
|
||||
openspec/
|
||||
@@ -1,48 +0,0 @@
|
||||
{
|
||||
"branches": ["main"],
|
||||
"plugins": [
|
||||
["@semantic-release/commit-analyzer", {
|
||||
"preset": "conventionalcommits",
|
||||
"releaseRules": [
|
||||
{ "type": "feat", "release": "minor" },
|
||||
{ "type": "fix", "release": "patch" },
|
||||
{ "type": "perf", "release": "patch" },
|
||||
{ "type": "refactor", "release": "patch" },
|
||||
{ "type": "docs", "release": false },
|
||||
{ "type": "style", "release": false },
|
||||
{ "type": "chore", "release": false },
|
||||
{ "type": "ci", "release": false },
|
||||
{ "type": "test", "release": false },
|
||||
{ "breaking": true, "release": "major" }
|
||||
]
|
||||
}],
|
||||
["@semantic-release/release-notes-generator", {
|
||||
"preset": "conventionalcommits",
|
||||
"presetConfig": {
|
||||
"types": [
|
||||
{ "type": "feat", "section": "🚀 Features" },
|
||||
{ "type": "fix", "section": "🐛 Bug Fixes" },
|
||||
{ "type": "perf", "section": "⚡ Performance" },
|
||||
{ "type": "refactor", "section": "♻️ Refactors" },
|
||||
{ "type": "docs", "section": "📚 Documentation", "hidden": true },
|
||||
{ "type": "chore", "section": "🧰 Maintenance", "hidden": true },
|
||||
{ "type": "ci", "section": "🔧 CI/CD", "hidden": true }
|
||||
]
|
||||
}
|
||||
}],
|
||||
["@semantic-release/changelog", {
|
||||
"changelogFile": "CHANGELOG.md"
|
||||
}],
|
||||
["@semantic-release/npm", {
|
||||
"npmPublish": false
|
||||
}],
|
||||
["@semantic-release/git", {
|
||||
"assets": ["package.json", "pnpm-lock.yaml", "CHANGELOG.md"],
|
||||
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
||||
}],
|
||||
["@semantic-release/github", {
|
||||
"successComment": false,
|
||||
"failTitle": false
|
||||
}]
|
||||
]
|
||||
}
|
||||
@@ -12,7 +12,7 @@ This document is a user-level guide for AI assistants working in this repository
|
||||
|
||||
- **Runtime**: Node.js (Electron environment)
|
||||
- **Node**: Recommended Node.js 20+
|
||||
- **Package manager**: `npm` (this project includes `package-lock.json`; use npm only)
|
||||
- **Package manager**: `pnpm` (this project includes `pnpm-lock.yaml`; use pnpm only)
|
||||
- **Build tools**: Electron Forge + Vite
|
||||
- **Terminal**: Windows (PowerShell) / VSCode MCP tools can be used safely
|
||||
|
||||
@@ -75,32 +75,32 @@ This document is a user-level guide for AI assistants working in this repository
|
||||
|
||||
## 📦 Common Scripts
|
||||
|
||||
Use `npm` for all commands:
|
||||
Use `pnpm` for all commands:
|
||||
|
||||
- **Development (Dev)**:
|
||||
- `npm start` - Start Electron dev environment (Electron Forge)
|
||||
- `npm run lint` - Run ESLint checks
|
||||
- `npm run format` - Run Prettier check
|
||||
- `npm run format:write` - Auto-format with Prettier
|
||||
- `npm run type-check` - Run TypeScript type check
|
||||
- `pnpm start` - Start Electron dev environment (Electron Forge)
|
||||
- `pnpm run lint` - Run ESLint checks
|
||||
- `pnpm run format` - Run Prettier check
|
||||
- `pnpm run format:write` - Auto-format with Prettier
|
||||
- `pnpm run type-check` - Run TypeScript type check
|
||||
|
||||
- **Build**:
|
||||
- `npm run package` - Package app (application bundle only)
|
||||
- `npm run make` - Build and generate distributable installers
|
||||
- `npm run publish` - Publish app
|
||||
- `pnpm run package` - Package app (application bundle only)
|
||||
- `pnpm run make` - Build and generate distributable installers
|
||||
- `pnpm run publish` - Publish app
|
||||
|
||||
- **Testing**:
|
||||
- `npm test` - Run Vitest tests
|
||||
- `npm run test:watch` - Run Vitest in watch mode
|
||||
- `npm run test:unit` - Same as above for unit-focused runs
|
||||
- `npm run test:e2e` - Run Playwright E2E tests
|
||||
- `npm run test:all` - Run all tests
|
||||
- `pnpm test` - Run Vitest tests
|
||||
- `pnpm run test:watch` - Run Vitest in watch mode
|
||||
- `pnpm run test:unit` - Same as above for unit-focused runs
|
||||
- `pnpm run test:e2e` - Run Playwright E2E tests
|
||||
- `pnpm run test:all` - Run all tests
|
||||
|
||||
### Running a Single Test
|
||||
|
||||
- Unit test: `npm run test:unit path/to/test.test.ts`
|
||||
- E2E test: `npm run test:e2e path/to/test.spec.ts`
|
||||
- Type check: `npm run type-check`
|
||||
- Unit test: `pnpm run test:unit path/to/test.test.ts`
|
||||
- E2E test: `pnpm run test:e2e path/to/test.spec.ts`
|
||||
- Type check: `pnpm run type-check`
|
||||
|
||||
## 🧪 Development Notes
|
||||
|
||||
@@ -171,7 +171,7 @@ export const Component: React.FC<ComponentProps> = ({ prop1 }) => {
|
||||
};
|
||||
```
|
||||
|
||||
> Before commit, run `npm run lint` and `npm run format`.
|
||||
> Before commit, run `pnpm run lint` and `pnpm run format`.
|
||||
|
||||
## 📝 Terminal Output and References
|
||||
|
||||
@@ -330,7 +330,7 @@ Summary / output:
|
||||
|
||||
Packages and scripts:
|
||||
|
||||
- `npm install` (or `npm i`)
|
||||
- `pnpm install` (or `pnpm i`)
|
||||
|
||||
Shell:
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"description": "Gemini Nexus - Electron App",
|
||||
"main": ".vite/build/main.js",
|
||||
"private": true,
|
||||
"packageManager": "[email protected]",
|
||||
"scripts": {
|
||||
"start": "cross-env DEBUG=electron-forge:* electron-forge start",
|
||||
"dev": "cross-env DEBUG=electron-forge:* electron-forge start",
|
||||
|
||||
+2
-2
@@ -6,7 +6,7 @@
|
||||
* instead of Gitmoji (since the project history doesn't use emojis).
|
||||
*/
|
||||
|
||||
const REPO_URL = 'https://github.com/Draculabo/AntigravityManager';
|
||||
const REPO_URL = 'https://github.com/evandrodevbr/GeminiNexus';
|
||||
const GITHUB_BASE_URL = 'https://github.com';
|
||||
const FULL_CHANGELOG_URL = `${REPO_URL}/blob/main/CHANGELOG.md`;
|
||||
|
||||
@@ -244,7 +244,7 @@ const releaseConfig = {
|
||||
[
|
||||
'@semantic-release/git',
|
||||
{
|
||||
assets: ['CHANGELOG.md', 'package.json', 'package-lock.json', 'npm-shrinkwrap.json'],
|
||||
assets: ['CHANGELOG.md', 'package.json', 'pnpm-lock.yaml'],
|
||||
message: 'chore(release): ${nextRelease.version}\n\n${nextRelease.notes}',
|
||||
},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user