Skip to content

Commit

Permalink
Define codeflow job (#1075)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
bangtoven authored Nov 20, 2023
1 parent 40d9197 commit fd6b7fa
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 8 deletions.
12 changes: 8 additions & 4 deletions .codeflow.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
secure:
required_reviews: 1
upstream_repository: coinbase/coinbase-wallet-sdk
operate:
slack_channels:
- "#wallet-squad-build"
- "#wallet-feedback"
build:
engines:
- BaldurNode:
name: package-wallet-sdk
path: "./scripts/publish-canary.Dockerfile"
compute_type: BUILD_GENERAL1_SMALL
context: "./"
autobuild: false
2 changes: 1 addition & 1 deletion packages/wallet-sdk/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 3 additions & 0 deletions scripts/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
engine: Node
build_name: package-wallet-sdk
continuous: true
18 changes: 18 additions & 0 deletions scripts/publish-canary.Dockerfile
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}... "
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dom.iterable",
"es2016",
],
"module": "CommonJS",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"resolveJsonModule": true,
"skipLibCheck": true,
Expand Down

0 comments on commit fd6b7fa

Please sign in to comment.