Skip to content

Commit 97bd80f

Browse files
committed
ci: fix release please config
1 parent ea39dea commit 97bd80f

File tree

3 files changed

+50
-46
lines changed

3 files changed

+50
-46
lines changed

.github/workflows/contracts.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,25 @@ jobs:
1818
- name: Checkout code
1919
uses: actions/checkout@v4
2020
with:
21-
# Adjust fetch-depth as needed
2221
fetch-depth: 0
2322

2423
- name: Detect package changes
2524
id: changed-files
2625
uses: tj-actions/changed-files@v45
2726
with:
2827
files_yaml: |
28+
dataprotector-deserializer:
29+
- 'packages/dataprotector-deserializer/**'
30+
protected-data-delivery-dapp:
31+
- 'packages/protected-data-delivery-dapp/**'
2932
sdk:
3033
- 'packages/sdk/**'
31-
smart_contract:
34+
sharing-smart-contract:
35+
- 'packages/smart-contract/**'
36+
smart-contract:
3237
- 'packages/smart-contract/**'
3338
subgraph:
3439
- 'packages/subgraph/**'
35-
dapp:
36-
- 'packages/protected-data-delivery-dapp/**'
37-
# Enable matrix output for use in subsequent jobs
3840
matrix: true
3941

4042
build-and-test:
@@ -44,8 +46,6 @@ jobs:
4446
strategy:
4547
matrix:
4648
package: [ sdk, smart_contract, subgraph, dapp ]
47-
# Run this job only if changes were detected in the respective package
48-
if: ${{ fromJson(needs.detect-changes.outputs[matrix.package]).any_changed == 'true' }}
4949
steps:
5050
- name: Checkout code
5151
uses: actions/checkout@v4

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
uses: googleapis/release-please-action@v4
1919
with:
2020
token: ${{ secrets.DEPLOY_TOKEN }}
21-
config-file: release-please-config.json
21+
config-file: release-please-config.json

release-please-config.json

Lines changed: 42 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,53 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"changelog-sections": [
4+
{ "type": "feat", "section": "🚀 Features", "hidden": false },
5+
{ "type": "change", "section": "🚀 Features", "hidden": false },
6+
{ "type": "deprecate", "section": "⚠️ Changes", "hidden": false },
7+
{ "type": "remove", "section": "⚠️ Changes", "hidden": false },
8+
{ "type": "fix", "section": "🐞 Bug Fixes", "hidden": false },
9+
{ "type": "revert", "section": "🐞 Bug Fixes", "hidden": false },
10+
{ "type": "security", "section": "🐞 Bug Fixes", "hidden": false },
11+
{ "type": "perf", "section": "✨ Polish", "hidden": false },
12+
{ "type": "refactor", "section": "✨ Polish", "hidden": false },
13+
{ "type": "style", "section": "✨ Polish", "hidden": false },
14+
{ "type": "build", "section": "🧰 Other", "hidden": false },
15+
{ "type": "chore", "section": "🧰 Other", "hidden": false },
16+
{ "type": "deps", "section": "🧰 Other", "hidden": true },
17+
{ "type": "ci", "section": "🧰 Other", "hidden": true },
18+
{ "type": "test", "section": "🧪 Tests", "hidden": false },
19+
{ "type": "docs", "section": "📚 Documentation", "hidden": true }
20+
],
321
"packages": {
4-
"src/cli": {
22+
"packages/dataprotector-deserializer": {
523
"release-type": "node",
624
"changelog-path": "CHANGELOG.md",
7-
"changelog-sections": [
8-
{"type":"feat","section":"🚀 Features","hidden":false},
9-
{"type":"change","section":"🚀 Features","hidden":false},
10-
{"type":"deprecate","section":"⚠️ Changes","hidden":false},
11-
{"type":"remove","section":"⚠️ Changes","hidden":false},
12-
{"type":"fix","section":"🐞 Bug Fixes","hidden":false},
13-
{"type":"revert","section":"🐞 Bug Fixes","hidden":false},
14-
{"type":"security","section":"🐞 Bug Fixes","hidden":false},
15-
{"type":"perf","section":"✨ Polish","hidden":false},
16-
{"type":"refactor","section":"✨ Polish","hidden":false},
17-
{"type":"style","section":"✨ Polish","hidden":false},
18-
{"type":"build","section":"🧰 Other","hidden":false},
19-
{"type":"chore","section":"🧰 Other","hidden":false},
20-
{"type":"deps","section":"🧰 Other","hidden":true},
21-
{"type":"ci","section":"🧰 Other","hidden":true},
22-
{"type":"test","section":"🧪 Tests","hidden":false},
23-
{"type":"docs","section":"📚 Documentation","hidden":true}
24-
]
25+
"initial-version": "0.11.1"
2526
},
26-
"src/lib": {
27+
"protected-data-delivery-dapp": {
2728
"release-type": "node",
2829
"changelog-path": "CHANGELOG.md",
29-
"changelog-sections": [
30-
{"type":"feat","section":"🚀 Features","hidden":false},
31-
{"type":"change","section":"🚀 Features","hidden":false},
32-
{"type":"deprecate","section":"⚠️ Changes","hidden":false},
33-
{"type":"remove","section":"⚠️ Changes","hidden":false},
34-
{"type":"fix","section":"🐞 Bug Fixes","hidden":false},
35-
{"type":"revert","section":"🐞 Bug Fixes","hidden":false},
36-
{"type":"security","section":"🐞 Bug Fixes","hidden":false},
37-
{"type":"perf","section":"✨ Polish","hidden":false},
38-
{"type":"refactor","section":"✨ Polish","hidden":false},
39-
{"type":"style","section":"✨ Polish","hidden":false},
40-
{"type":"build","section":"🧰 Other","hidden":false},
41-
{"type":"chore","section":"🧰 Other","hidden":false},
42-
{"type":"deps","section":"🧰 Other","hidden":true},
43-
{"type":"ci","section":"🧰 Other","hidden":true},
44-
{"type":"test","section":"🧪 Tests","hidden":false},
45-
{"type":"docs","section":"📚 Documentation","hidden":true}
46-
]
30+
"initial-version": "1.0.0"
31+
},
32+
"packages/sdk": {
33+
"release-type": "node",
34+
"changelog-path": "CHANGELOG.md",
35+
"initial-version": "2.0.0-beta.12"
36+
},
37+
"packages/sharing-smart-contract": {
38+
"release-type": "node",
39+
"changelog-path": "CHANGELOG.md",
40+
"initial-version": "2.0.0"
41+
},
42+
"packages/smart-contract": {
43+
"release-type": "node",
44+
"changelog-path": "CHANGELOG.md",
45+
"initial-version": "0.1.0"
46+
},
47+
"packages/subgraph": {
48+
"release-type": "node",
49+
"changelog-path": "CHANGELOG.md",
50+
"initial-version": "3.0.0"
4751
}
4852
}
4953
}

0 commit comments

Comments
 (0)