Skip to content
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
91ea715
feat: add grantedAccess property to Contact type for bulk processing …
abbesBenayache Oct 24, 2025
d7d866c
refactor: sendTelegram to use processProtectedData from IExecDataProt…
abbesBenayache Oct 27, 2025
e771eba
refactor: update fetchDatasetOrderbook, moove dataset parameter from …
abbesBenayache Oct 28, 2025
89fd0e9
feat: add bulk telegram message processing support
abbesBenayache Oct 28, 2025
a46ed8a
chore: update iexec dependency to exact version for bulk processing
abbesBenayache Oct 29, 2025
7a20180
refactor: update types for bulk processing
abbesBenayache Oct 29, 2025
596edb3
feat: add bulkOnly parameter to fetchMyContacts and fetchUserContacts
abbesBenayache Oct 29, 2025
a0d7095
refactor: refactor sendTelegram to use grantedAccess instead of bulkR…
abbesBenayache Oct 29, 2025
8fe349d
test: add unit tests for bulkOnly parameter in fetchMyContacts
abbesBenayache Oct 29, 2025
4f72d3d
test: refactor sendTelegram unit tests for grantedAccess
abbesBenayache Oct 29, 2025
f2fbc23
test: add e2e tests for bulkOnly parameter
abbesBenayache Oct 29, 2025
9e3931f
test: update sendTelegramBulk e2e test for grantedAccess API
abbesBenayache Oct 29, 2025
69f71c9
ci: allow nightly releases from any branch
abbesBenayache Nov 3, 2025
6459c41
chore: sync .github workflows from main
abbesBenayache Nov 3, 2025
fe889e7
ci: enable nightly tag promotion from any branch
abbesBenayache Nov 3, 2025
9b30233
ci: resolve merge conflict by integrating nightly release support int…
abbesBenayache Nov 3, 2025
ef292c0
Merge remote-tracking branch 'origin/main' into feat/sdk-bulk-process…
abbesBenayache Nov 3, 2025
f8c2c99
chore: update dependencies to official releases
abbesBenayache Nov 4, 2025
4f3512b
fix: update bulk processing for iexec SDK v8.22.0
abbesBenayache Nov 4, 2025
e57d35b
ci: trigger all tests
abbesBenayache Nov 4, 2025
d56cd36
test: update unit test to use bulkAccesses instead of bulkOrders
abbesBenayache Nov 4, 2025
b2e371c
refactor: SendTelegramResponse conditional typing
PierreJeanjacquot Nov 4, 2025
df46c8c
feat: add prepareTelegramCampaign WIP
PierreJeanjacquot Nov 5, 2025
f57ec89
fix: workerpoolAddressOrEns is optional
PierreJeanjacquot Nov 5, 2025
90edd26
test: patch iexec sdk for tests (enable testing on bellecour fork)
PierreJeanjacquot Nov 5, 2025
10592b2
test: prepareTelegramCampaign test
PierreJeanjacquot Nov 5, 2025
e8df98d
refactor: extract bulk processing to sendTelegramCampaign function
abbesBenayache Nov 5, 2025
9cb3b48
chore: trigger CI tests
abbesBenayache Nov 6, 2025
dfb8682
Merge remote-tracking branch 'origin/main' into feat/sdk-bulk-process…
abbesBenayache Nov 6, 2025
600573b
fix: resolve ENS names to addresses in createAndPublishAppOrders
abbesBenayache Nov 6, 2025
5b37ed5
chore: stop using deprecated function call
PierreJeanjacquot Nov 6, 2025
0cbdb8d
fix: improve protocol error handling in sendTelegram and fix test
abbesBenayache Nov 6, 2025
ee11dba
chore: restore npm publish ci
PierreJeanjacquot Nov 6, 2025
3fcb83b
refactor: simplify code
PierreJeanjacquot Nov 6, 2025
ec12e18
refactor: move types
PierreJeanjacquot Nov 6, 2025
9c76421
refactor: move types
PierreJeanjacquot Nov 6, 2025
86a1bc0
refactor: remove useless type
PierreJeanjacquot Nov 6, 2025
46bb6b8
refactor: clean types
PierreJeanjacquot Nov 6, 2025
4e3063a
refactor: fix typo in file name
PierreJeanjacquot Nov 6, 2025
93a32d5
feat: add campaignRequest validation
PierreJeanjacquot Nov 6, 2025
e86e320
test: update tests timeout
PierreJeanjacquot Nov 6, 2025
c08e432
chore: update market API for tests
PierreJeanjacquot Nov 6, 2025
a69a146
chore: remove useless apporder publication in test
PierreJeanjacquot Nov 6, 2025
bb795b8
style: format tests
PierreJeanjacquot Nov 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 27 additions & 12 deletions .github/workflows/sdk-publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@
name: Publish NPM Package

on:
# For staging releases
# For staging/nightly releases
workflow_dispatch:
inputs:
tag:
description: 'NPM tag to publish (latest or nightly)'
required: true
type: choice
options:
- latest
- nightly
default: nightly
# For latest releases
release:
types: [published]
Expand All @@ -14,32 +23,38 @@ permissions:
contents: read

jobs:
set-staging-version:
# Only run for manual dispatch on main branch
if: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' }}
set-publish-version:
# Run for manual dispatch on any branch (allows nightly releases from any branch)
if: ${{ github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Set publish version
id: set-staging-version
id: set-publish-version
run: |
CURRENT_VERSION=$(npm pkg get version | tr -d '"')
NIGHTLY_VERSION="${CURRENT_VERSION}-nightly-${GITHUB_SHA::7}"
echo "VERSION=${NIGHTLY_VERSION}" >> $GITHUB_OUTPUT
TAG="${{ github.event.inputs.tag || 'nightly' }}"
# For nightly tag, append commit SHA to version
if [ "$TAG" == "nightly" ]; then
NIGHTLY_VERSION="${CURRENT_VERSION}-nightly-${GITHUB_SHA::7}"
echo "VERSION=${NIGHTLY_VERSION}" >> $GITHUB_OUTPUT
else
echo "VERSION=${CURRENT_VERSION}" >> $GITHUB_OUTPUT
fi
outputs:
VERSION: ${{ steps.set-staging-version.outputs.VERSION }}
VERSION: ${{ steps.set-publish-version.outputs.VERSION }}

publish-npm-staging:
# Only run for manual dispatch on main branch
if: ${{ github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' }}
# Run for manual dispatch on any branch (allows nightly releases from any branch)
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: ./.github/workflows/reusable-sdk-npm.yml
needs: set-staging-version
needs: set-publish-version
with:
tag: ${{ github.event.inputs.tag }}
version: ${{ needs.set-staging-version.outputs.VERSION }}
version: ${{ needs.set-publish-version.outputs.VERSION }}

publish-npm-latest:
# # Only run for release published with tag "web3telegram-v*"
Expand Down
Loading
Loading