Skip to content

Commit 8979bac

Browse files
test: add release-please debug workflows
1 parent 800c496 commit 8979bac

File tree

4 files changed

+118
-1
lines changed

4 files changed

+118
-1
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Test Release Please (Minimal Config)
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
test-minimal-config:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Backup original config
21+
run: |
22+
cp release-please-config.json release-please-config-backup.json
23+
24+
- name: Use minimal config
25+
run: |
26+
cp release-please-config-test.json release-please-config.json
27+
28+
- name: Debug with minimal config
29+
run: |
30+
echo "=== Testing with minimal config ==="
31+
cat release-please-config.json
32+
echo ""
33+
echo "Package version:"
34+
node -p "require('./package.json').version"
35+
36+
- name: Test release-please minimal
37+
uses: googleapis/release-please-action@v4
38+
with:
39+
token: ${{ secrets.GITHUB_TOKEN }}
40+
target-branch: test/release-please-debug
41+
dry-run: true
42+
debug: true
43+
44+
- name: Restore original config
45+
if: always()
46+
run: |
47+
cp release-please-config-backup.json release-please-config.json
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Test Release Please
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- test/release-please-debug
8+
9+
permissions:
10+
contents: write
11+
issues: write
12+
pull-requests: write
13+
14+
jobs:
15+
debug-release-please:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Debug package.json versions
24+
run: |
25+
echo "=== Package.json Versions ==="
26+
echo "Root package.json version:"
27+
node -p "require('./package.json').version"
28+
echo ""
29+
echo "DApp package.json version:"
30+
node -p "require('./dapp/package.json').version"
31+
echo ""
32+
echo "Release-please manifest:"
33+
cat .release-please-manifest.json
34+
echo ""
35+
36+
- name: Debug release-please config
37+
run: |
38+
echo "=== Release-Please Config ==="
39+
cat release-please-config.json
40+
echo ""
41+
42+
- name: Debug recent commits
43+
run: |
44+
echo "=== Recent Commits ==="
45+
git log --oneline -5
46+
echo ""
47+
48+
- name: Test release-please dry run
49+
uses: googleapis/release-please-action@v4
50+
with:
51+
token: ${{ secrets.GITHUB_TOKEN }}
52+
target-branch: test/release-please-debug
53+
dry-run: true
54+
debug: true
55+
56+
- name: Test release-please with debug output
57+
if: always()
58+
run: |
59+
echo "=== Release-Please Debug Output ==="
60+
echo "This step will show any error messages from the previous step"
61+
echo "Check the logs above for detailed error information"

release-please-config-test.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "node",
6+
"changelog-path": "CHANGELOG.md"
7+
}
8+
}
9+
}

release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3-
"include-component-in-tag": true,
3+
"include-component-in-tag": false,
44
"changelog-sections": [
55
{ "type": "feat", "section": "Added", "hidden": false },
66

0 commit comments

Comments
 (0)