diff --git a/.codeflow.yml b/.codeflow.yml index 69524c63a5..5ec780dd0d 100644 --- a/.codeflow.yml +++ b/.codeflow.yml @@ -3,5 +3,12 @@ secure: upstream_repository: coinbase/coinbase-wallet-sdk operate: slack_channels: - - "#wallet-squad-build" - - "#wallet-feedback" + - "#wallet-squad-w3i" +build: + engines: + - BaldurNode: + name: package-wallet-sdk + path: "./scripts/publish-canary.Dockerfile" + compute_type: BUILD_GENERAL1_SMALL + context: "./" + autobuild: true diff --git a/packages/wallet-sdk/package.json b/packages/wallet-sdk/package.json index 1113478aa9..a186012e76 100644 --- a/packages/wallet-sdk/package.json +++ b/packages/wallet-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@coinbase/wallet-sdk", - "version": "3.9.0-canary.5", + "version": "3.9.0", "description": "Coinbase Wallet JavaScript SDK", "keywords": [ "cipher", diff --git a/packages/wallet-sdk/src/relay/walletlink/ui/components/Snackbar/Snackbar.tsx b/packages/wallet-sdk/src/relay/walletlink/ui/components/Snackbar/Snackbar.tsx index b23bf9fc6a..50c613ede4 100644 --- a/packages/wallet-sdk/src/relay/walletlink/ui/components/Snackbar/Snackbar.tsx +++ b/packages/wallet-sdk/src/relay/walletlink/ui/components/Snackbar/Snackbar.tsx @@ -26,8 +26,8 @@ export interface SnackbarMenuItem { svgWidth: string; svgHeight: string; path: string; - defaultFillRule: string; - defaultClipRule: string; + defaultFillRule: 'inherit' | 'evenodd'; + defaultClipRule: 'inherit' | 'evenodd'; onClick: () => void; } diff --git a/scripts/deploy.yml b/scripts/deploy.yml new file mode 100644 index 0000000000..ce47cd97fe --- /dev/null +++ b/scripts/deploy.yml @@ -0,0 +1,3 @@ +engine: Node +build_name: package-wallet-sdk +continuous: true diff --git a/scripts/publish-canary.Dockerfile b/scripts/publish-canary.Dockerfile new file mode 100644 index 0000000000..d6ea539c3e --- /dev/null +++ b/scripts/publish-canary.Dockerfile @@ -0,0 +1,18 @@ +FROM 652969937640.dkr.ecr.us-east-1.amazonaws.com/containers/node:v18 + +RUN apt-get update \ + && apt-get install -y jq + +COPY . ./sdk + +WORKDIR /sdk + +RUN yarn install + +RUN yarn release -- canary + +RUN npm pack -w @coinbase/wallet-sdk + +RUN mv /sdk /shared + +WORKDIR /shared diff --git a/scripts/release.sh b/scripts/release.sh index 235bd4f364..0f3d403fd7 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -35,6 +35,17 @@ if [ $branch == $mainBranch ]; then echo "=================================================" echo -e " ${GREEN} run 'npm publish'" echo "=================================================" +elif [[ " $* " == *" canary "* ]]; then + echo -e "Preparing canary release..." + cd ./packages/wallet-sdk + timestamp=$(date +%s) + newVersion=$(jq -r '.version' package.json)"-canary.$timestamp" + jq ".version = \"$newVersion\"" package.json > temp.json && \ + mv temp.json package.json + echo "Canary version updated to $newVersion" + + yarn install + yarn build else echo -e "${RED}⚠️ Need to publish from ${mainBranch} branch" echo -e "${REDBOLD}Checking out ${mainBranch}... " diff --git a/tsconfig.base.json b/tsconfig.base.json index b5bfb27a81..e8ceb38f65 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -14,7 +14,7 @@ "dom.iterable", "es2016", ], - "module": "CommonJS", + "module": "NodeNext", "moduleResolution": "NodeNext", "resolveJsonModule": true, "skipLibCheck": true,