Skip to content

Commit

Permalink
build: prepare release to publish ckETH (#511)
Browse files Browse the repository at this point in the history
# Motivation

This PR prepares the repo for a first release of the cketh-js library,
that way we can setup our pipelines.
It also add the librariries entries for the GitHub actions of ic-js.

---------

Co-authored-by: Formatting Committer <[email protected]>
  • Loading branch information
peterpeterparker and Formatting Committer authored Jan 3, 2024
1 parent fc74239 commit 9009305
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ jobs:
run: npm publish --provenance --tag next --workspace=packages/ckbtc
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish ckETH
run: npm publish --provenance --tag next --workspace=packages/cketh
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish ic-management
run: npm publish --provenance --tag next --workspace=packages/ic-management
env:
Expand Down
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
# 2024.01.03-1115Z

## Overview

The current status of the libraries at the time of the release is as follows:

| Library | Version | Status |
| ------------------------ | ------- | ---------- |
| `@dfinity/ckbtc` | v2.1.0 | Unchanged |
| `@dfinity/cketh` | v0.0.1 | New 🚀 |
| `@dfinity/cmc` | v2.1.0 | Unchanged |
| `@dfinity/ic-management` | v2.1.0 | Unchanged |
| `@dfinity/ledger-icp` | v2.1.0 | Unchanged |
| `@dfinity/ledger-icrc` | v2.1.0 | Unchanged |
| `@dfinity/nns` | v3.1.0 | Unchanged |
| `@dfinity/nns-proto` | v1.0.0 | Unchanged |
| `@dfinity/sns` | v2.1.0 | Unchanged |
| `@dfinity/utils` | v2.0.0 | Unchanged️ |

## Features

- Introduces an early first version of `@dfinity/cketh`, which is meant to provide functions for interfacing with ckETH. The library doesn't do much at the moment, but we're releasing it to integrate it into our pipelines, and features will be added iteratively as required.

# 2023.12.20-1000Z

## Overview
Expand Down Expand Up @@ -40,7 +63,7 @@ The current status of the libraries at the time of the release is as follows:

- Add a cron job to periodically update IC candid files and typescript bindings.

# Release.2023.11.21-1400Z
# 2023.11.21-1400Z

## Overview

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ A collection of library for interfacing with the Internet Computer.
- [ledger-icp](/packages/ledger-icp): interfacing with the **ICP** ledger
- [ledger-icrc](/packages/ledger-icrc): interacting with **ICRC** compatible ledgers
- [ckBTC](/packages/ckbtc): interfacing with **ckBTC**
- [ckETH](/packages/cketh): interfacing with **ckETH**
- [ic-management](/packages/ic-management): interfacing with the **IC management canister**
- [utils](/packages/utils): a collection of utilities and constants
- [nns-proto](/packages/nns-proto): the protobuf source used by `nns-js` to support hardware wallets
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/ic-js",
"version": "2023.12.20-1000Z",
"version": "2024.01.03-1115Z",
"description": "A collection of library for interfacing with the Internet Computer.",
"license": "Apache-2.0",
"workspaces": [
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function publish_npm() {
}

# Tips: libs use by other libs first
LIBS=utils,ledger-icrc,ledger-icp,nns-proto,nns,sns,cmc,ckbtc,ic-management
LIBS=utils,ledger-icrc,ledger-icp,nns-proto,nns,sns,cmc,ckbtc,cketh,ic-management

for lib in $(echo $LIBS | sed "s/,/ /g"); do
publish_npm "$lib"
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-agent
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function install_agent() {
npm i @dfinity/agent@latest @dfinity/candid@latest @dfinity/principal@latest --workspace=packages/"$package" --save-peer
}

PACKAGES=utils,ckbtc,cmc,ic-management,ledger-icp,ledger-icrc,nns,sns
PACKAGES=utils,ckbtc,cketh,cmc,ic-management,ledger-icp,ledger-icrc,nns,sns

# Remove agent-js libraries from all packages first to avoid resolve conflicts between those
for package in $(echo $PACKAGES | sed "s/,/ /g"); do
Expand Down

0 comments on commit 9009305

Please sign in to comment.