From e1dd8fc39bbc2c02140f12ea188a24e1e6397ffe Mon Sep 17 00:00:00 2001 From: dwertent Date: Tue, 12 Nov 2024 12:05:56 -0500 Subject: [PATCH 1/4] Adding node setup Signed-off-by: dwertent --- .github/workflows/release-typescript-sdk.yaml | 14 +++++++++++++- sdk/typescript/package.json | 3 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-typescript-sdk.yaml b/.github/workflows/release-typescript-sdk.yaml index 27634b77c..2d08e6350 100644 --- a/.github/workflows/release-typescript-sdk.yaml +++ b/.github/workflows/release-typescript-sdk.yaml @@ -7,14 +7,25 @@ on: required: true workflow_dispatch: + jobs: publish: + permissions: + contents: read + id-token: write + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 submodules: recursive + - uses: actions/setup-node@v4 + with: + node-version: '18.x' + registry-url: 'https://registry.npmjs.org' + - name: Install pre-requisites uses: ./.github/actions/setup @@ -24,6 +35,7 @@ jobs: run: | set -e ../../gradlew build - npm publish + npm publish -provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + diff --git a/sdk/typescript/package.json b/sdk/typescript/package.json index 0eb4b8edc..3516d6ce1 100644 --- a/sdk/typescript/package.json +++ b/sdk/typescript/package.json @@ -18,5 +18,8 @@ "axios": "^1.7.7", "ethers": "^6.13.4", "uuid": "^11.0.2" + }, + "repository": { + "url": "https://github.com/LF-Decentralized-Trust-labs/paladin" } } From edcc1dc32689526ed3f7215ef05674a44938c218 Mon Sep 17 00:00:00 2001 From: Andrew Richardson Date: Tue, 12 Nov 2024 13:55:07 -0500 Subject: [PATCH 2/4] sdk: expose failureMessage on receipts Signed-off-by: Andrew Richardson --- sdk/typescript/src/interfaces/transaction.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/typescript/src/interfaces/transaction.ts b/sdk/typescript/src/interfaces/transaction.ts index 2e2ffc28f..c873a4107 100644 --- a/sdk/typescript/src/interfaces/transaction.ts +++ b/sdk/typescript/src/interfaces/transaction.ts @@ -65,6 +65,7 @@ export interface ITransactionReceipt { contractAddress?: string; }; }; + failureMessage?: string; } export interface ITransactionStates { From d6cb82ca2ada16c29cb599eefea37ca16fa23c16 Mon Sep 17 00:00:00 2001 From: Andrew Richardson Date: Tue, 12 Nov 2024 14:22:53 -0500 Subject: [PATCH 3/4] sdk: update version Signed-off-by: Andrew Richardson --- sdk/typescript/package-lock.json | 4 ++-- sdk/typescript/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/typescript/package-lock.json b/sdk/typescript/package-lock.json index 7d976d24a..15a861a13 100644 --- a/sdk/typescript/package-lock.json +++ b/sdk/typescript/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lfdecentralizedtrust-labs/paladin-sdk", - "version": "0.0.1", + "version": "0.0.2-alpha.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@lfdecentralizedtrust-labs/paladin-sdk", - "version": "0.0.1", + "version": "0.0.2-alpha.1", "license": "Apache-2.0", "dependencies": { "axios": "^1.7.7", diff --git a/sdk/typescript/package.json b/sdk/typescript/package.json index 0eb4b8edc..14e4ae51c 100644 --- a/sdk/typescript/package.json +++ b/sdk/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@lfdecentralizedtrust-labs/paladin-sdk", - "version": "0.0.1", + "version": "0.0.2-alpha.1", "description": "", "main": "build/index.js", "scripts": { From fe0af9c079c8a4326882713acacac42a804d1f74 Mon Sep 17 00:00:00 2001 From: dwertent Date: Tue, 12 Nov 2024 14:29:46 -0500 Subject: [PATCH 4/4] fixed provenance flag Signed-off-by: dwertent --- .github/workflows/release-typescript-sdk.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-typescript-sdk.yaml b/.github/workflows/release-typescript-sdk.yaml index 2d08e6350..e2e6fc9df 100644 --- a/.github/workflows/release-typescript-sdk.yaml +++ b/.github/workflows/release-typescript-sdk.yaml @@ -35,7 +35,7 @@ jobs: run: | set -e ../../gradlew build - npm publish -provenance --access public + npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}