Skip to content

Commit 20d7e72

Browse files
authored
chore(release): v0.3.0 (#182)
1 parent c46aa38 commit 20d7e72

File tree

3 files changed

+89
-1
lines changed

3 files changed

+89
-1
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Changelog
2+
3+
## [0.3.0](https://github.com/paritytech/asset-transfer-api/compare/v0.2.26..v0.3.0)
4+
5+
### Feature
6+
- feat: add xcAssetsData property with USDC-USDT ([#180](https://github.com/paritytech/asset-transfer-api-registry/pull/180))([f508a34](https://github.com/paritytech/asset-transfer-api-registry/commit/f508a348c022d93e3cd84a58e4842b0c27778a69))
7+
8+
### Chores
9+
- chore(deps): bump vite from 5.4.14 to 5.4.19 ([#185](https://github.com/paritytech/asset-transfer-api-registry/pull/185))([c46aa38](https://github.com/paritytech/asset-transfer-api-registry/commit/c46aa386ad604c3451c836d34a73ee73405fd7ab))
10+
- chore(deps): bump elliptic from 6.6.0 to 6.6.1 ([#184](https://github.com/paritytech/asset-transfer-api-registry/pull/184))([e32ee99](https://github.com/paritytech/asset-transfer-api-registry/commit/e32ee999ff14cef7b013c87c0eb460ad6705851b))
11+
- chore(deps-dev): bump vitest from 1.4.0 to 1.6.1 ([#183](https://github.com/paritytech/asset-transfer-api-registry/pull/183))([d495fde](https://github.com/paritytech/asset-transfer-api-registry/commit/d495fdef8a575b00e4976d7daef2fafeff5dfd48))
12+
- chore(deps): bump base-x from 3.0.9 to 3.0.11 ([#181](https://github.com/paritytech/asset-transfer-api-registry/pull/181))([d177fe9](https://github.com/paritytech/asset-transfer-api-registry/commit/d177fe9d986703be52291473f444b1d4cb1c5d63))
13+
- chore: update registry
14+
- Note: Multiple PRs with this same title are regularly submitted to update the registry.

RELEASE.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
## Release Documentation
2+
3+
The following will cover releasing the `asset-transfer-api-registry` to both github and NPM.
4+
5+
### Creating the Release Branch
6+
7+
1. Ensure you are in the `main` branch then run:
8+
9+
```bash
10+
$ git pull origin main
11+
$ git checkout -b <name>-vXX-XX-XX
12+
```
13+
14+
1. In your new release branch update the version inside of the `package.json` to match the version we are releasing. This is super important as it will be the source of truth for updating to NPM.
15+
16+
1. Inside of the `CHANGELOG.md`, follow the previous format of other releases, and input each commit that is being added in this current release.
17+
- Note: For multiple chore: update registry commits, you can just mention one representative entry (similar to how it was done in `v0.3.0`release), rather than listing every individual registry update.
18+
19+
1. Run:
20+
21+
```bash
22+
$ git add .
23+
$ git commit -m 'chore(release): vXX.XX.XX'
24+
$ git push
25+
```
26+
27+
Then create a PR with the same title as the commit message.
28+
29+
1. When approved merge the PR into main.
30+
31+
### Creating the NPM release
32+
33+
#### Requirements
34+
35+
- You must be part of the integrations NPM team for substrate.
36+
- You must have 2FA enabled.
37+
38+
#### Steps
39+
40+
1. Ensure your current working branch is `main`, and run the following as a sanity check.
41+
42+
```bash
43+
$ git pull origin main
44+
$ yarn build
45+
$ yarn test
46+
```
47+
48+
1. Run:
49+
50+
```bash
51+
$ yarn deploy
52+
```
53+
54+
#### Notes
55+
56+
- Ensure the logging provided by NPM says the current version that is going to get released is correct before you enter your OTP.
57+
- If you are on node version 18 or below, it will ask you for your OTP in the terminal. But if you are on node 20 or greater it will redirect you to the browser to input the OTP.
58+
59+
1. Tada! You should have now received a message saying that the package has been released. You can go to https://www.npmjs.com/package/@substrate/asset-transfer-api-registry to double check the release's success.
60+
61+
### Creating a Github release
62+
63+
1. Right after you have released the NPM package, we are going to set a tag that will match the version of the release:
64+
65+
```bash
66+
$ git tag vXX.XX.XX
67+
$ git push origin vXX.XX.XX
68+
```
69+
70+
1. Once that is pushed to github, go to https://github.com/paritytech/asset-transfer-api-registry/tags, and in the tab where the new version has now been created, click on the 2 dots all the way to the right, and press `create release`.
71+
72+
1. Inside of `create release` you may copy the contents of the `CHANGELOG.md` for the release and input them there. For the title, just name it the version `vXX.XX.XX`.
73+
74+
1. Click `Publish as latest`, and that will complete the release process.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@substrate/asset-transfer-api-registry",
3-
"version": "0.2.26",
3+
"version": "0.3.0",
44
"description": "Asset registry for asset-transfer-api",
55
"main": "docs/registry.json",
66
"module": "docs/registry.json",

0 commit comments

Comments
 (0)