Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define codeflow job #1075

Merged
merged 3 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .codeflow.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
secure:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

secure:
required_reviews: 1
upstream_repository: coinbase/coinbase-wallet-sdk
build:
engines:

  • BaldurNode:
    name: package-wallet-sdk
    path: "./scripts/publish-canary.Dockerfile"
    compute_type: BUILD_GENERAL1_SMALL
    context: "./"
    autobuild: false

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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


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
Loading