@gilbert_oliveira/commit-wizard 2.2.0 → 2.4.0-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +51 -0
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -379,6 +379,57 @@ npm run build
379
379
 
380
380
  ---
381
381
 
382
+ ## 🚀 Fluxo Automatizado de Publicação
383
+
384
+ O Commit Wizard utiliza um sistema automatizado de CI/CD para publicação no npm e GitHub Packages.
385
+
386
+ ### 📦 Versões Canary (PRs)
387
+
388
+ - **Trigger**: Push em branches que não sejam `main` ou `master`
389
+ - **Versão**: Formato `x.y.z-canary.<hash>` (ex: `2.4.0-canary.abc123`)
390
+ - **Publicação**:
391
+ - npm: `npm install @gilbert_oliveira/commit-wizard@canary`
392
+ - GitHub Packages: `npm install @gilbert_oliveira/commit-wizard@canary --registry=https://npm.pkg.github.com`
393
+ - **Comentário**: Automático na PR com instruções de instalação
394
+
395
+ ### 🏷️ Versões Estáveis (Main)
396
+
397
+ - **Trigger**: Push na branch `main` ou `master`
398
+ - **Versão**: Formato semântico `x.y.z` (ex: `2.4.0`)
399
+ - **Publicação**:
400
+ - npm: `npm install -g @gilbert_oliveira/commit-wizard`
401
+ - GitHub Packages: `npm install -g @gilbert_oliveira/commit-wizard --registry=https://npm.pkg.github.com`
402
+ - **Changelog**: Gerado automaticamente via Changesets
403
+
404
+ ### 🔧 Scripts de Desenvolvimento
405
+
406
+ ```bash
407
+ # Changesets
408
+ npm run changeset # Criar changeset
409
+ npm run version # Bump de versão
410
+ npm run release # Publicar no npm
411
+ npm run release:github # Publicar no GitHub Packages
412
+
413
+ # Canary
414
+ npm run canary # Publicar canary no npm
415
+ npm run canary:github # Publicar canary no GitHub Packages
416
+
417
+ # Release manual
418
+ npm run release:patch # Bump patch
419
+ npm run release:minor # Bump minor
420
+ npm run release:major # Bump major
421
+ ```
422
+
423
+ ### 📋 Workflows GitHub Actions
424
+
425
+ - **`.github/workflows/canary.yml`**: Publicação canary em PRs
426
+ - **`.github/workflows/release.yml`**: Publicação estável na main
427
+ - **`.github/workflows/validate-changesets.yml`**: Validação de changesets
428
+ - **`.github/workflows/ci.yml`**: Testes e build
429
+ - **`.github/workflows/deploy.yml`**: Deploy manual
430
+
431
+ ---
432
+
382
433
  ## 🤝 Contribuição
383
434
 
384
435
  1. Fork o projeto
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "Commit Wizard",
4
4
  "publisher": "gilbert-oliveira",
5
5
  "description": "CLI inteligente para gerar mensagens de commit usando OpenAI",
6
- "version": "2.2.0",
6
+ "version": "2.4.0-canary.1",
7
7
  "categories": [
8
8
  "Other",
9
9
  "SCM Providers"
@@ -12,7 +12,7 @@
12
12
  "module": "index.ts",
13
13
  "type": "module",
14
14
  "bin": {
15
- "commit-wizard": "./dist/commit-wizard.js"
15
+ "commit-wizard": "dist/commit-wizard.js"
16
16
  },
17
17
  "scripts": {
18
18
  "dev": "npm run build && node dist/commit-wizard.js",
@@ -29,15 +29,15 @@
29
29
  "ci:test": "vitest run",
30
30
  "ci:build": "npm run build",
31
31
  "changeset": "changeset",
32
+ "changeset:create": "node scripts/create-changeset.js",
32
33
  "version": "changeset version",
33
34
  "release": "changeset publish",
34
35
  "release:github": "npm run build && npm publish --registry=https://npm.pkg.github.com",
35
- "canary": "npm run build && npm publish --tag canary",
36
- "canary:github": "npm run build && npm publish --registry=https://npm.pkg.github.com --tag canary",
37
- "changeset:create": "node scripts/create-changeset.js",
38
36
  "release:patch": "./scripts/release.sh patch",
39
37
  "release:minor": "./scripts/release.sh minor",
40
38
  "release:major": "./scripts/release.sh major",
39
+ "canary": "npm run build && npm publish --tag canary",
40
+ "canary:github": "npm run build && npm publish --registry=https://npm.pkg.github.com --tag canary",
41
41
  "check-changes": "node -e \"const { execSync } = require('child_process'); const changed = execSync('git diff --name-only HEAD~1 HEAD', { encoding: 'utf8' }).includes('package.json') || execSync('git diff --name-only HEAD~1 HEAD', { encoding: 'utf8' }).match(/(src|bin|scripts|dist)/\\.*/); console.log(changed ? '🚀 Mudanças detectadas - deploy recomendado!' : '⚠️ Nenhuma mudança significativa detectada'); process.exit(changed ? 0 : 1);\""
42
42
  },
43
43
  "keywords": [