Skip to content

Commit fd6b7fa

Browse files
authored
Define codeflow job (coinbase#1075)
* define codeflow job commit 74d75fdcf3f891cbe55403efb1136fed5c89947f Merge: 53cedd28 e5b80fb3 Author: Jungho Bang <[email protected]> Date: Mon Nov 20 14:18:56 2023 -0800 Merge pull request #4 from wallet/jungho/asdfasdfasdf shared commit e5b80fb308e7176fcf8cc4a297e477cb5521184a Author: Jungho Bang <[email protected]> Date: Mon Nov 20 14:15:45 2023 -0800 shared commit 53cedd285560a2ed2e74ed173aaa9b1b3301e0ae Author: Jungho Bang <[email protected]> Date: Mon Nov 20 14:05:36 2023 -0800 fix (#3) * no slack error * config file * ugh commit 864ddc9d3b23f2ae3435226c6357c459e9331e42 Merge: a9f34b3d 85813135 Author: Jungho Bang <[email protected]> Date: Mon Nov 20 13:18:44 2023 -0800 Merge pull request #2 from wallet/jungho/codeflow-build ls commit 85813135cdba5d477f03fac3acc7cf521dcf2b06 Author: Jungho Bang <[email protected]> Date: Mon Nov 20 13:17:39 2023 -0800 sadfasdfadf commit dbaea5013c4e1d8a1f0b3ec29c97e32ff21b8b1a Author: Jungho Bang <[email protected]> Date: Mon Nov 20 13:17:20 2023 -0800 asdfasdf commit 384ab2e54a04d2b33c94aea3558342b8e59f18af Author: Jungho Bang <[email protected]> Date: Mon Nov 20 13:02:45 2023 -0800 WORKDIR /sdk commit 64dc76525124ddba8ad714965861b54ffc990996 Author: Jungho Bang <[email protected]> Date: Mon Nov 20 12:58:12 2023 -0800 workdir /sdk commit 70dd5982f4f7fc4a7dc813355c2d4eb61b57b8a7 Author: Jungho Bang <[email protected]> Date: Mon Nov 20 12:57:46 2023 -0800 udpate copy path commit 3d686cf8335f40e200b138fc0666f2d7bbc689ad Author: Jungho Bang <[email protected]> Date: Mon Nov 20 12:48:38 2023 -0800 ls commit a9f34b3d833e7236697ff40229d32590c041a506 Merge: 40d9197 f2e819b7 Author: Jungho Bang <[email protected]> Date: Mon Nov 20 12:40:59 2023 -0800 Merge pull request #1 from wallet/jungho/codeflow codeflow commit f2e819b73cb68b9ef9909dd5835845fb2a4a314e Author: Jungho Bang <[email protected]> Date: Mon Nov 20 12:32:41 2023 -0800 cbhq commit a9116b3dc0afb2ecb6fd322032dca591c0c63ba9 Author: Jungho Bang <[email protected]> Date: Mon Nov 20 12:29:08 2023 -0800 rename it as cbhq/wallet-sdk commit 74ccade Author: Jungho Bang <[email protected]> Date: Mon Nov 20 12:13:24 2023 -0800 update version only commit 58a325c Author: Jungho Bang <[email protected]> Date: Mon Nov 20 12:06:08 2023 -0800 run on the wallet-sdk dir commit d335560 Author: Jungho Bang <[email protected]> Date: Mon Nov 20 11:54:43 2023 -0800 update name as well commit 529c0a2 Author: Jungho Bang <[email protected]> Date: Mon Nov 20 11:46:52 2023 -0800 cleanup commit bdac83c Author: Jungho Bang <[email protected]> Date: Mon Nov 20 11:41:13 2023 -0800 update release.sh to take `canary` # Conflicts: # scripts/release.sh commit 3ec1110 Author: Jungho Bang <[email protected]> Date: Mon Nov 20 11:17:42 2023 -0800 cleanup commit 091bcb5 Author: Jungho Bang <[email protected]> Date: Mon Nov 20 11:06:05 2023 -0800 add canary option to release.sh commit 5c74bd5 Author: Jungho Bang <[email protected]> Date: Mon Nov 20 10:40:49 2023 -0800 cleanup commit 6269c0c Author: Jungho Bang <[email protected]> Date: Fri Nov 17 15:28:25 2023 -0800 codeflow job (#2) Update README.md update dockerfile autobuild: true WORKDIR /packages/wallet-sdk COPY . . asdfasdfasdfadfsa asdfafwa qwerR2DCewae XC tsconfig module NodeNext tsconfig path SVG issue publish? asdfsd a WORKDIR / 이거일듯 시발 * hmmm * no slack channel stuff
1 parent 40d9197 commit fd6b7fa

File tree

7 files changed

+44
-8
lines changed

7 files changed

+44
-8
lines changed

.codeflow.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
secure:
22
required_reviews: 1
33
upstream_repository: coinbase/coinbase-wallet-sdk
4-
operate:
5-
slack_channels:
6-
- "#wallet-squad-build"
7-
- "#wallet-feedback"
4+
build:
5+
engines:
6+
- BaldurNode:
7+
name: package-wallet-sdk
8+
path: "./scripts/publish-canary.Dockerfile"
9+
compute_type: BUILD_GENERAL1_SMALL
10+
context: "./"
11+
autobuild: false

packages/wallet-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coinbase/wallet-sdk",
3-
"version": "3.9.0-canary.5",
3+
"version": "3.9.0",
44
"description": "Coinbase Wallet JavaScript SDK",
55
"keywords": [
66
"cipher",

packages/wallet-sdk/src/relay/walletlink/ui/components/Snackbar/Snackbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export interface SnackbarMenuItem {
2626
svgWidth: string;
2727
svgHeight: string;
2828
path: string;
29-
defaultFillRule: string;
30-
defaultClipRule: string;
29+
defaultFillRule: 'inherit' | 'evenodd';
30+
defaultClipRule: 'inherit' | 'evenodd';
3131
onClick: () => void;
3232
}
3333

scripts/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
engine: Node
2+
build_name: package-wallet-sdk
3+
continuous: true

scripts/publish-canary.Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM 652969937640.dkr.ecr.us-east-1.amazonaws.com/containers/node:v18
2+
3+
RUN apt-get update \
4+
&& apt-get install -y jq
5+
6+
COPY . ./sdk
7+
8+
WORKDIR /sdk
9+
10+
RUN yarn install
11+
12+
RUN yarn release -- canary
13+
14+
RUN npm pack -w @coinbase/wallet-sdk
15+
16+
RUN mv /sdk /shared
17+
18+
WORKDIR /shared

scripts/release.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ if [ $branch == $mainBranch ]; then
3535
echo "================================================="
3636
echo -e " ${GREEN} run 'npm publish'"
3737
echo "================================================="
38+
elif [[ " $* " == *" canary "* ]]; then
39+
echo -e "Preparing canary release..."
40+
cd ./packages/wallet-sdk
41+
timestamp=$(date +%s)
42+
newVersion=$(jq -r '.version' package.json)"-canary.$timestamp"
43+
jq ".version = \"$newVersion\"" package.json > temp.json && \
44+
mv temp.json package.json
45+
echo "Canary version updated to $newVersion"
46+
47+
yarn install
48+
yarn build
3849
else
3950
echo -e "${RED}⚠️ Need to publish from ${mainBranch} branch"
4051
echo -e "${REDBOLD}Checking out ${mainBranch}... "

tsconfig.base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"dom.iterable",
1515
"es2016",
1616
],
17-
"module": "CommonJS",
17+
"module": "NodeNext",
1818
"moduleResolution": "NodeNext",
1919
"resolveJsonModule": true,
2020
"skipLibCheck": true,

0 commit comments

Comments
 (0)