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

ZK-1337: Publish packages to npm #87

Merged
merged 12 commits into from
Jan 16, 2025
Merged

ZK-1337: Publish packages to npm #87

merged 12 commits into from
Jan 16, 2025

Conversation

kroist
Copy link
Collaborator

@kroist kroist commented Jan 14, 2025

Copy link

github-actions bot commented Jan 14, 2025

Transaction NameMainCurrentDifference (%)
NewAccountNative20002392000287+0.00240%
DepositNative18279181827966+0.00263%
WithdrawNative18981501898090-0.00316%

Base automatically changed from rn-ts-packages to main January 14, 2025 17:00
Copy link

📊 Coverage Report

📈 Total Coverage Summary

Type Covered Total Coverage
📝 Lines 148 411 ❌ 36%
📄 Statements 149 414 ❌ 35.99%
⚡ Functions 38 105 ❌ 36.19%
🔀 Branches 14 66 ❌ 21.21%

Coverage Legend

  • ✅ 100% Coverage
  • 🟡 80-99% Coverage
  • 🟠 50-79% Coverage
  • ❌ 0-49% Coverage

📁 File Coverage

📋 Detailed Coverage Report
File Lines Statements Functions Branches
zkOS-monorepo/ts/shielder-sdk/src/chain/contract.ts 4.76% 4.76% 7.14% 0%
zkOS-monorepo/ts/shielder-sdk/src/chain/relayer.ts 8.57% 8.57% 14.28% 0%
zkOS-monorepo/ts/shielder-sdk/src/constants.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/shielder/actions/deposit.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/shielder/actions/newAccount.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/shielder/actions/utils.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/shielder/actions/withdraw.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/shielder/client.ts 0% 0% 0% 0%
zkOS-monorepo/ts/shielder-sdk/src/shielder/state/events.ts 0% 0% 0% 0%
zkOS-monorepo/ts/shielder-sdk/src/shielder/state/index.ts 0% 0% 0% 0%
zkOS-monorepo/ts/shielder-sdk/src/shielder/state/storageSchema.ts 0% 0% 0% 0%
zkOS-monorepo/ts/shielder-sdk/src/shielder/state/sync.ts 0% 0% 0% 0%
zkOS-monorepo/ts/shielder-sdk/src/utils.ts 100% 100% 100% 100%

required: true
type: choice
options:
- develop
Copy link
Contributor

Choose a reason for hiding this comment

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

just making sure that develop is an actual tag and not a misspelling of development

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

an actual tag

elif [ "${{ github.event.inputs.package }}" = "shielder-sdk-crypto" ]; then
pnpm build-package:crypto
else
pnpm build-package:crypto-wasm
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: you could handle crypto-wasm in another elif and stop the workflow in the else branch, just to have slightly more bug-resistant code in case this script evolves

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, I believe the best scenario is to have separate jobs declarations for each package. but now let's keep it simple


jobs:
build-and-push-relayer:
name: Build and push shielder-relayer
Copy link
Contributor

Choose a reason for hiding this comment

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

just making sure that the removal of a script to push relayer is deliberate

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, we don't need to push relayer this way. it was supposed only for image push to docker registry so devs can download it, not for deployments.

we now use staging envs, so we don't need this functionality

@kroist kroist merged commit af7f9f0 into main Jan 16, 2025
11 checks passed
@kroist kroist deleted the publish-ts-packages branch January 16, 2025 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants