Skip to content

Commit 6f514b8

Browse files
authored
Merge branch 'develop' into ci/ssc/add-workflows
2 parents 63e9670 + 70b75cb commit 6f514b8

File tree

17 files changed

+1093
-764
lines changed

17 files changed

+1093
-764
lines changed

.drone.yml

Lines changed: 30 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,3 @@
1-
kind: pipeline
2-
type: docker
3-
name: root checks
4-
5-
trigger:
6-
event:
7-
- pull_request
8-
9-
steps:
10-
- name: cat-drone-consider
11-
image: node:18.19
12-
commands:
13-
- cat .drone-consider
14-
15-
- name: check-sdk-abi
16-
image: node:18.19
17-
commands:
18-
- cd packages/sdk
19-
- npm run refresh-abis
20-
- |
21-
if [ -n "$(git diff --name-only)" ]; then
22-
echo "ABIs not up-to-date in packages/sdk, need to run 'npm run refresh-abis'"
23-
exit 1
24-
fi
25-
26-
- name: check-subgraph-abi
27-
image: node:18.19
28-
commands:
29-
- cd packages/subgraph
30-
- npm run refresh-abis
31-
- |
32-
if [ -n "$(git diff --name-only)" ]; then
33-
echo "ABIs not up-to-date in packages/subgraph, need to run 'npm run refresh-abis'"
34-
exit 1
35-
fi
36-
37-
- name: check-dapp-abi
38-
image: node:18.19
39-
commands:
40-
- cd packages/protected-data-delivery-dapp/deployment
41-
- npm run refresh-abis
42-
- |
43-
if [ -n "$(git diff --name-only)" ]; then
44-
echo "ABIs not up-to-date in protected-data-delivery-dapp/abis, need to run 'npm run refresh-abis'"
45-
exit 1
46-
fi
47-
48-
---
491
# deploy DataProtector smart contract to prod, dev or staging
502
kind: pipeline
513
type: docker
@@ -1215,6 +1167,8 @@ trigger:
12151167
event:
12161168
- promote
12171169
target:
1170+
# publish the package @iexec/dataprotector on npm with the tag nightly
1171+
- sdk-publish-nightly
12181172
# publish the package @iexec/dataprotector on npm with the tag beta (require sdk version to be [version]-beta.[b])
12191173
- sdk-publish-beta
12201174
# publish the package @iexec/dataprotector on npm with the tag latest
@@ -1251,6 +1205,34 @@ steps:
12511205
- main
12521206
target:
12531207
- sdk-publish-beta
1208+
1209+
- name: set-version-nightly
1210+
image: node:18.19
1211+
commands:
1212+
- cd packages/sdk
1213+
- eval npm pkg set version="$(npm pkg get version)-nightly-$DRONE_COMMIT"
1214+
when:
1215+
target:
1216+
- sdk-publish-nightly
1217+
depends_on:
1218+
- install
1219+
1220+
- name: npm publish nightly
1221+
image: plugins/npm
1222+
settings:
1223+
username:
1224+
from_secret: npm_username
1225+
token:
1226+
from_secret: npm_token
1227+
tag: nightly
1228+
access: public
1229+
folder: packages/sdk
1230+
depends_on:
1231+
- build
1232+
- set-version-nightly
1233+
when:
1234+
target:
1235+
- sdk-publish-nightly
12541236

12551237
- name: npm-publish-beta
12561238
image: plugins/npm

.github/workflows/root-checks.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Root checks
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
changed-files:
7+
name: Detect Changes
8+
runs-on: ubuntu-latest
9+
outputs:
10+
matrix: ${{ steps.changed.outputs.all_changed_and_modified_files }}
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Detect changed files
17+
id: changed
18+
uses: tj-actions/changed-files@v45
19+
with:
20+
matrix: 'true'
21+
dir_names: 'true'
22+
dir_names_max_depth: 3
23+
files: |
24+
packages/sdk/**
25+
packages/subgraph/**
26+
packages/protected-data-delivery-dapp/deployment/**
27+
28+
build-and-test:
29+
name: Build & Test Modified Packages
30+
needs: [changed-files]
31+
runs-on: ubuntu-latest
32+
strategy:
33+
matrix:
34+
package: ${{ fromJSON(needs.changed-files.outputs.matrix) }}
35+
max-parallel: 4
36+
fail-fast: false
37+
steps:
38+
- uses: actions/checkout@v4
39+
- uses: actions/setup-node@v4
40+
with:
41+
node-version: '18'
42+
43+
- name: Install dependencies and run tests for ${{ matrix.package }}
44+
working-directory: ${{ matrix.package }}
45+
run: |
46+
npm run refresh-abis

packages/sdk/CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,28 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [2.0.0-beta.15] (2025-04-04)
6+
7+
### Changed
8+
9+
- Rename `voucherAddress` to `voucherOwner`
10+
- Fix internal bug
11+
12+
## [2.0.0-beta.14] (2025-04-01)
13+
14+
### Added
15+
16+
- support for iExec voucher in `processProtectedData()` via `useVoucher` option
17+
- added `voucherAddress` option for using a non-owned voucher contract in `processProtectedData()`
18+
19+
## [2.0.0-beta.13] (2025-03-13)
20+
21+
### Changed
22+
23+
- Upgraded the iexec dependency to ^8.13.1, which includes:
24+
- Migrated default SMS URL to <https://sms.iex.ec>.
25+
- Migrated from the deprecated SMS apps secrets endpoint.
26+
527
## [2.0.0-beta.12] (2025-02-04)
628

729
### Added

0 commit comments

Comments
 (0)