Skip to content

Commit 2b258c3

Browse files
authored
Release 20251103 (#3645)
2 parents 95e0467 + fb562b4 commit 2b258c3

File tree

314 files changed

+24761
-15416
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

314 files changed

+24761
-15416
lines changed

.changeset/config.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"changelog": false,
88
"bumpVersionsWithWorkspaceProtocolOnly": true,
99
"privatePackages": {
10-
"version": false,
10+
"version": true,
1111
"tag": false
12-
}
12+
},
13+
"ignore": ["@apps/*", "@tools/*"]
1314
}

.github/workflows/cd-gitbook-sdk-docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish SDK Docs to GitBook
33
on:
44
push:
55
tags:
6-
- "sdk@*"
6+
- "js/sdk@*"
77

88
permissions:
99
contents: read
Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,60 @@
11
name: Python SDK publish
22

3+
permissions:
4+
contents: write
5+
36
on:
4-
release:
5-
types: [published]
6-
workflow_dispatch:
7-
inputs:
8-
release_version:
9-
description: 'Release version to use'
10-
required: true
7+
push:
8+
branches:
9+
- main
10+
paths:
11+
- "packages/sdk/python/human-protocol-sdk/**"
1112

1213
jobs:
1314
publish-python-sdk:
1415
name: Publish Python SDK
1516
runs-on: ubuntu-latest
1617
steps:
1718
- uses: actions/checkout@v5
19+
with:
20+
token: ${{ secrets.GH_GITBOOK_TOKEN }}
1821
- uses: actions/setup-node@v4
1922
with:
2023
node-version-file: .nvmrc
2124
cache: yarn
22-
- name: Install dependencies
25+
- name: Install JS dependencies
2326
run: yarn install
2427
- name: Build core package
2528
run: yarn workspace @human-protocol/core build
2629
- name: Set up Python
2730
uses: actions/setup-python@v6
2831
with:
2932
python-version: "3.x"
30-
- name: Install dependencies
33+
- name: Read package version
34+
id: read_version
35+
run: |
36+
VERSION=$(jq -r '.version' packages/sdk/python/human-protocol-sdk/package.json)
37+
echo "version=$VERSION" >> $GITHUB_OUTPUT
38+
- name: Install build deps
3139
working-directory: ./packages/sdk/python/human-protocol-sdk
3240
run: |
3341
python -m pip install --upgrade pip
3442
pip install setuptools==68.2.2 wheel twine
35-
- name: Set the release version
36-
uses: "DamianReeves/write-file-action@master"
37-
if: ${{ github.event_name != 'workflow_dispatch' }}
38-
with:
39-
path: ./packages/sdk/python/human-protocol-sdk/human_protocol_sdk/__init__.py
40-
write-mode: overwrite
41-
contents: |
42-
__version__ = "${{ github.event.release.tag_name }}"
43-
- name: Set the release version
44-
uses: "DamianReeves/write-file-action@master"
45-
if: ${{ github.event_name == 'workflow_dispatch' }}
46-
with:
47-
path: ./packages/sdk/python/human-protocol-sdk/human_protocol_sdk/__init__.py
48-
write-mode: overwrite
49-
contents: |
50-
__version__ = "${{ github.event.inputs.release_version }}"
5143
- name: Build and publish
5244
working-directory: ./packages/sdk/python/human-protocol-sdk
5345
env:
5446
TWINE_USERNAME: __token__
5547
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
48+
run: make publish-package
49+
- name: Create and push tag
50+
working-directory: ./packages/sdk/python/human-protocol-sdk
5651
run: |
57-
make publish-package
52+
VERSION="${{ steps.read_version.outputs.version }}"
53+
TAG="python/sdk@${VERSION}"
54+
echo "Version: $VERSION | Tag: $TAG"
55+
if git rev-parse -q --verify "refs/tags/${TAG}" >/dev/null; then
56+
echo "Tag ${TAG} already exists. Skipping tag creation."
57+
exit 0
58+
fi
59+
git tag -a "$TAG" -m "Python SDK $VERSION"
60+
git push origin "$TAG"

.github/workflows/ci-test-dashboard.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Dashboard Check
33
on:
44
push:
55
paths:
6-
- 'packages/core/**'
7-
- 'packages/sdk/typescript/human-protocol-sdk/**'
8-
- 'packages/apps/dashboard/**'
6+
- "packages/core/**"
7+
- "packages/sdk/typescript/human-protocol-sdk/**"
8+
- "packages/apps/dashboard/**"
99

1010
jobs:
1111
dashboard-server-test:
@@ -22,4 +22,4 @@ jobs:
2222
- name: Build libs
2323
run: yarn build:libs
2424
- name: Run dashboard Server test
25-
run: yarn workspace @human-protocol/dashboard-server test
25+
run: yarn workspace @apps/dashboard-server test

.github/workflows/ci-test-faucet-server.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Faucet server check
33
on:
44
push:
55
paths:
6-
- 'packages/core/**'
7-
- 'packages/sdk/typescript/human-protocol-sdk/**'
8-
- 'packages/apps/faucet/server/**'
6+
- "packages/core/**"
7+
- "packages/sdk/typescript/human-protocol-sdk/**"
8+
- "packages/apps/faucet/server/**"
99

1010
jobs:
1111
faucet-server-test:
@@ -25,4 +25,4 @@ jobs:
2525
run: cp .env.example .env
2626
working-directory: packages/apps/faucet/server
2727
- name: Run faucet/server test
28-
run: yarn workspace @human-protocol/faucet-server test
28+
run: yarn workspace @apps/faucet-server test

.github/workflows/ci-test-fortune.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Fortune check
33
on:
44
push:
55
paths:
6-
- 'packages/core/**'
7-
- 'packages/sdk/typescript/human-protocol-sdk/**'
8-
- 'packages/apps/fortune/**'
6+
- "packages/core/**"
7+
- "packages/sdk/typescript/human-protocol-sdk/**"
8+
- "packages/apps/fortune/**"
99

1010
jobs:
1111
fortune-exchange-oracle-test:
@@ -22,7 +22,7 @@ jobs:
2222
- name: Build libs
2323
run: yarn build:libs
2424
- name: Run Exchange Oracle tests
25-
run: yarn workspace @human-protocol/fortune-exchange-oracle-server test
25+
run: yarn workspace @apps/fortune-exchange-oracle-server test
2626

2727
fortune-recording-oracle-test:
2828
name: Fortune Recording Oracle Tests
@@ -38,4 +38,4 @@ jobs:
3838
- name: Build libs
3939
run: yarn build:libs
4040
- name: Run Recording Oracle tests
41-
run: yarn workspace @human-protocol/fortune-recording-oracle test
41+
run: yarn workspace @apps/fortune-recording-oracle test

.github/workflows/ci-test-human-app.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Human App Check
33
on:
44
push:
55
paths:
6-
- 'packages/core/**'
7-
- 'packages/sdk/typescript/human-protocol-sdk/**'
8-
- 'packages/apps/human-app/**'
6+
- "packages/core/**"
7+
- "packages/sdk/typescript/human-protocol-sdk/**"
8+
- "packages/apps/human-app/**"
99

1010
jobs:
1111
job-app-server-test:
@@ -22,4 +22,4 @@ jobs:
2222
- name: Build libs
2323
run: yarn build:libs
2424
- name: Run Job Human App unit tests
25-
run: yarn workspace @human-protocol/human-app-server test
25+
run: yarn workspace @apps/human-app-server test

.github/workflows/ci-test-job-launcher.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Job Launcher Check
33
on:
44
push:
55
paths:
6-
- 'packages/core/**'
7-
- 'packages/sdk/typescript/human-protocol-sdk/**'
8-
- 'packages/apps/job-launcher/**'
6+
- "packages/core/**"
7+
- "packages/sdk/typescript/human-protocol-sdk/**"
8+
- "packages/apps/job-launcher/**"
99

1010
jobs:
1111
job-launcher-server-test:
@@ -22,4 +22,4 @@ jobs:
2222
- name: Build libs
2323
run: yarn build:libs
2424
- name: Run Job Launcher Server test
25-
run: yarn workspace @human-protocol/job-launcher-server test
25+
run: yarn workspace @apps/job-launcher-server test

.github/workflows/ci-test-reputation-oracle.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Reputation Oracle Check
33
on:
44
push:
55
paths:
6-
- 'packages/core/**'
7-
- 'packages/sdk/typescript/human-protocol-sdk/**'
8-
- 'packages/apps/reputation-oracle/**'
6+
- "packages/core/**"
7+
- "packages/sdk/typescript/human-protocol-sdk/**"
8+
- "packages/apps/reputation-oracle/**"
99

1010
jobs:
1111
reputation-oracle-test:
@@ -22,4 +22,4 @@ jobs:
2222
- name: Build libs
2323
run: yarn build:libs
2424
- name: Run reputation oracle test
25-
run: yarn workspace @human-protocol/reputation-oracle test
25+
run: yarn workspace @apps/reputation-oracle test

.github/workflows/ci-test-subgraph.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Subgraph check
33
on:
44
push:
55
paths:
6-
- 'packages/core/**'
7-
- 'packages/sdk/typescript/subgraph/**'
6+
- "packages/core/**"
7+
- "packages/sdk/typescript/subgraph/**"
88

99
jobs:
1010
subgraph-test:
@@ -22,6 +22,6 @@ jobs:
2222
- name: Build core package
2323
run: yarn workspace @human-protocol/core build
2424
- name: Generate manifest for Polygon for tests
25-
run: NETWORK=polygon yarn workspace @human-protocol/subgraph generate
25+
run: NETWORK=polygon yarn workspace @tools/subgraph generate
2626
- name: Run subgraph test
27-
run: yarn workspace @human-protocol/subgraph test
27+
run: yarn workspace @tools/subgraph test

0 commit comments

Comments
 (0)