Skip to content

Commit 370abc6

Browse files
committed
fix: github actions teste
1 parent 82ea623 commit 370abc6

3 files changed

Lines changed: 112 additions & 0 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: release-please
2+
3+
on:
4+
push:
5+
branches:
6+
- chore/new-changelog
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
release-please:
15+
runs-on: ubuntu-latest
16+
17+
permissions:
18+
contents: write
19+
pull-requests: write
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
ref: ${{ github.ref }}
28+
29+
- name: Debug - Verificar arquivos
30+
run: |
31+
echo "📁 Arquivos na raiz:"
32+
ls -la
33+
echo ""
34+
echo "📄 Conteúdo do config:"
35+
cat release-please-config.json || echo "Arquivo não encontrado"
36+
37+
- name: Configure Git User
38+
run: |
39+
git config --global user.name "github-actions[bot]"
40+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
41+
42+
- name: Release Please
43+
id: release
44+
uses: google-github-actions/release-please-action@v3
45+
env:
46+
RELEASE_PLEASE_LOCAL_MANIFEST: 'true'
47+
with:
48+
package-name: 'php-namespace-refactor'
49+
config-file: 'release-please-config.json'
50+
manifest-file: '.release-please-manifest.json'
51+
changelog-path: 'CHANGELOG.md'
52+
command: manifest
53+
54+
- name: Debug Output
55+
if: always()
56+
run: |
57+
echo "Release created: ${{ steps.release.outputs.release_created }}"
58+
echo "Tag: ${{ steps.release.outputs.tag_name }}"
59+
echo "Error: ${{ steps.release.outputs.error || 'None' }}"

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "1.2.1"
3+
}

release-please-config.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"include-v-in-tag": true,
4+
"include-component-in-tag": true,
5+
"separate-pull-requests": true,
6+
"packages": {
7+
".": {
8+
"changelog-path": "CHANGELOG.md",
9+
"package-name": "php-namespace-refactor",
10+
"initial-version": "1.2.1",
11+
"changelog-sections": [
12+
{
13+
"type": "feat",
14+
"section": "🚀 Novas Funcionalidades"
15+
},
16+
{
17+
"type": "fix",
18+
"section": "🐛 Correções de Bugs"
19+
},
20+
{
21+
"type": "docs",
22+
"section": "📚 Documentação"
23+
},
24+
{
25+
"type": "style",
26+
"section": "💄 Estilo"
27+
},
28+
{
29+
"type": "refactor",
30+
"section": "♻️ Refatoração"
31+
},
32+
{
33+
"type": "test",
34+
"section": "🧪 Testes"
35+
},
36+
{
37+
"type": "chore",
38+
"section": "🔧 Configurações"
39+
},
40+
{
41+
"type": "ci",
42+
"section": "⚙️ CI/CD"
43+
}
44+
],
45+
"extra-files": [
46+
"composer.json"
47+
]
48+
}
49+
}
50+
}

0 commit comments

Comments
 (0)