Skip to content

Commit 88aaff3

Browse files
committed
ci: fix release please config
1 parent ea39dea commit 88aaff3

File tree

7 files changed

+177
-134
lines changed

7 files changed

+177
-134
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
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Publish dataprotector-deserializer on npm
2+
3+
on:
4+
push:
5+
tags:
6+
- "dataprotector-deserializer-v*"
7+
8+
jobs:
9+
build-test:
10+
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/publish-npm.yml@feat/publish-npm/init-publish-npm
11+
with:
12+
scope: ''
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
name: dataprotector-deserializer-default
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '*'
7+
paths:
8+
- 'packages/dataprotector-deserializer/**'
9+
10+
jobs:
11+
build_test_dependency:
12+
name: Build test dependency dataprotector-sdk
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v3
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 18
21+
- name: Build et tests de dataprotector-sdk
22+
working-directory: packages/sdk
23+
run: |
24+
npm ci
25+
npm run codegen
26+
npm run build
27+
28+
install:
29+
name: Install
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v3
34+
- name: Setup Node.js
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: 18
38+
- name: Installation et préparation des tests
39+
working-directory: packages/dataprotector-deserializer
40+
run: |
41+
node -v
42+
npm -v
43+
npm ci
44+
npm run test:prepare
45+
46+
format:
47+
name: Format
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Checkout repository
51+
uses: actions/checkout@v3
52+
- name: Setup Node.js
53+
uses: actions/setup-node@v4
54+
with:
55+
node-version: 18
56+
- name: Vérification du format
57+
working-directory: packages/dataprotector-deserializer
58+
run: npm run check-format
59+
60+
lint:
61+
name: Lint
62+
runs-on: ubuntu-latest
63+
steps:
64+
- name: Checkout repository
65+
uses: actions/checkout@v3
66+
- name: Setup Node.js
67+
uses: actions/setup-node@v4
68+
with:
69+
node-version: 18
70+
- name: Exécution du lint
71+
working-directory: packages/dataprotector-deserializer
72+
run: npm run lint
73+
74+
check_types:
75+
name: Check types
76+
runs-on: ubuntu-latest
77+
steps:
78+
- name: Checkout repository
79+
uses: actions/checkout@v3
80+
- name: Setup Node.js
81+
uses: actions/setup-node@v4
82+
with:
83+
node-version: 18
84+
- name: Vérification des types
85+
working-directory: packages/dataprotector-deserializer
86+
run: npm run check-types
87+
88+
test:
89+
name: Test
90+
runs-on: ubuntu-latest
91+
steps:
92+
- name: Checkout repository
93+
uses: actions/checkout@v3
94+
- name: Setup Node.js
95+
uses: actions/setup-node@v4
96+
with:
97+
node-version: 18
98+
- name: Exécution des tests
99+
working-directory: packages/dataprotector-deserializer
100+
run: npm run test
101+
102+
build:
103+
name: Build
104+
runs-on: ubuntu-latest
105+
steps:
106+
- name: Checkout repository
107+
uses: actions/checkout@v3
108+
- name: Setup Node.js
109+
uses: actions/setup-node@v4
110+
with:
111+
node-version: 18
112+
- name: Build final
113+
working-directory: packages/dataprotector-deserializer
114+
run: npm run build

.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-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"packages/dataprotector-deserializer": "0.11.1",
44
"packages/sharing-smart-contract": "v2.0.0",
55
"packages/subgraph": "3.0.0",
6-
"protected-data-delivery-dapp": "1.0.0"
6+
"packages/protected-data-delivery-dapp": "1.0.0"
77
}

packages/dataprotector-deserializer/.drone.yml

Lines changed: 0 additions & 87 deletions
This file was deleted.

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+
"packages/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)