Skip to content

Commit

Permalink
chore: release v0.9.1 (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwylde authored Jun 10, 2021
1 parent 3b7ed3a commit 435c87d
Show file tree
Hide file tree
Showing 14 changed files with 46 additions and 53 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ jobs:
- run: npm run build --workspaces
# run tests just in case
- run: npm test
# update versions and dependencies using tag
- run: npm run version -- ${GITHUB_REF#refs/tags/v}
# commit changes to main branch
- run: git add .; git commit -m "Releases ${GITHUB_REF#refs/tags/v}"; git push origin HEAD:main;
# publish to NPM
- run: npm config set '//registry.npmjs.org/:_authToken' "$NPM_TOKEN"
env:
Expand Down
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,14 @@ commands to keep in mind;

To publish to NPM, create a branch and run the following commands;

- `git clean -dfx`. Removes all non-tracked files and directories.
- `npm install`. Makes sure everything is installed and up to date locally;
- `npm run build --workspaces`. Builds all the applications and packages.
- `npm run test`. Just in case.
- One of:
- `npm exec lerna version VERSION_NUMBER —-no-push`. The `VERSION_NUMBER` should be set to
the version to be published (e.g. `0.6.30`). The `DIST_TAG` argument can be ignored
- `npm exec lerna version minor --no-push` to increment the minor version number only.
- `npm exec lerna version patch --no-push` to increment the patch version number only.

This will change your code locally, so create a `chore: release VERSION_NUMBER` commit and
push. Once the PR is created get someone to review it.
- `npm run version [patch|major|minor|version]`. Update the version in each of the packages.
- `git checkout -b release/v<#.#.#>`. Check out release branch
- `git add .`. Check out release branch
- `git commit -m 'chore: release v<#.#.#>'`. Commit changes
- Open a pull request from your fork of the repository

Then, when you have merged the new versions, open https://github.com/dfinity/agent-js/releases/new, click the "Draft a new release" button, enter the new tag version in form `v#.#.#`, and click "Publish release".

Expand Down
4 changes: 2 additions & 2 deletions apps/sw-cert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ic-agent-sw-cert-app",
"private": true,
"dependencies": {
"@dfinity/agent": "^0.9.0",
"@dfinity/agent": "^0.9.1",
"@types/pako": "^1.0.1",
"assert": "^2.0.0",
"base64-arraybuffer": "^0.2.0",
Expand All @@ -29,5 +29,5 @@
"test:coverage": "",
"test": ""
},
"version": "0.9.0"
"version": "0.9.1"
}
12 changes: 6 additions & 6 deletions demos/ledgerhq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "ic-agent-ledgerhq-app",
"private": true,
"dependencies": {
"@dfinity/agent": "^0.9.0",
"@dfinity/authentication": "^0.9.0",
"@dfinity/identity": "^0.9.0",
"@dfinity/identity-ledgerhq": "^0.9.0",
"@dfinity/principal": "^0.9.0",
"@dfinity/agent": "^0.9.1",
"@dfinity/authentication": "^0.9.1",
"@dfinity/identity": "^0.9.1",
"@dfinity/identity-ledgerhq": "^0.9.1",
"@dfinity/principal": "^0.9.1",
"assert": "^2.0.0",
"buffer": "^6.0.3",
"events": "^3.2.0",
Expand All @@ -27,5 +27,5 @@
"test:coverage": "",
"test": ""
},
"version": "0.9.0"
"version": "0.9.1"
}
10 changes: 5 additions & 5 deletions demos/sample-javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "ic-agent-sample-javascript-app",
"private": true,
"dependencies": {
"@dfinity/agent": "^0.9.0",
"@dfinity/authentication": "^0.9.0",
"@dfinity/identity": "^0.9.0",
"@dfinity/principal": "^0.9.0",
"@dfinity/agent": "^0.9.1",
"@dfinity/authentication": "^0.9.1",
"@dfinity/identity": "^0.9.1",
"@dfinity/principal": "^0.9.1",
"assert": "^2.0.0",
"buffer": "^6.0.3",
"events": "^3.2.0",
Expand All @@ -25,5 +25,5 @@
"test:coverage": "",
"test": ""
},
"version": "0.9.0"
"version": "0.9.1"
}
10 changes: 5 additions & 5 deletions e2e/node/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@do-not-publish/ic-node-e2e-tests",
"version": "0.9.0",
"version": "0.9.1",
"scripts": {
"ci": "npm run e2e",
"e2e": "jest --verbose",
Expand All @@ -16,10 +16,10 @@
"test": ""
},
"dependencies": {
"@dfinity/agent": "^0.9.0",
"@dfinity/authentication": "^0.9.0",
"@dfinity/identity": "^0.9.0",
"@dfinity/principal": "^0.9.0",
"@dfinity/agent": "^0.9.1",
"@dfinity/authentication": "^0.9.1",
"@dfinity/identity": "^0.9.1",
"@dfinity/principal": "^0.9.1",
"@trust/webcrypto": "^0.9.2",
"@types/base64-js": "^1.2.5",
"@types/jest": "^26.0.23",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/agent-monorepo",
"version": "0.9.0",
"version": "0.9.1",
"private": true,
"description": "Use an Agent to interact with the Internet Computer from your JavaScript program.",
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/agent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/agent",
"version": "0.9.0",
"version": "0.9.1",
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to interact with the Internet Computer",
Expand Down Expand Up @@ -41,8 +41,8 @@
"tslint": "tslint --project tsconfig.json --config tslint.json"
},
"peerDependencies": {
"@dfinity/candid": "^0.9.0",
"@dfinity/principal": "^0.9.0"
"@dfinity/candid": "^0.9.1",
"@dfinity/principal": "^0.9.1"
},
"dependencies": {
"base64-arraybuffer": "^0.2.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/auth-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/auth-client",
"version": "0.9.0",
"version": "0.9.1",
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to provide a simple integration with an IC Internet Identity",
Expand Down Expand Up @@ -37,10 +37,10 @@
"test:coverage": "jest --verbose --collectCoverage"
},
"peerDependencies": {
"@dfinity/agent": "^0.9.0",
"@dfinity/authentication": "^0.9.0",
"@dfinity/identity": "^0.9.0",
"@dfinity/principal": "^0.9.0"
"@dfinity/agent": "^0.9.1",
"@dfinity/authentication": "^0.9.1",
"@dfinity/identity": "^0.9.1",
"@dfinity/principal": "^0.9.1"
},
"devDependencies": {
"@trust/webcrypto": "^0.9.2",
Expand Down
8 changes: 4 additions & 4 deletions packages/authentication/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/authentication",
"version": "0.9.0",
"version": "0.9.1",
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to manage identity and authentication with the Internet Computer",
Expand Down Expand Up @@ -37,9 +37,9 @@
"test:coverage": "jest --verbose --collectCoverage"
},
"peerDependencies": {
"@dfinity/agent": "^0.9.0",
"@dfinity/identity": "^0.9.0",
"@dfinity/principal": "^0.9.0"
"@dfinity/agent": "^0.9.1",
"@dfinity/identity": "^0.9.1",
"@dfinity/principal": "^0.9.1"
},
"devDependencies": {
"@trust/webcrypto": "^0.9.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/candid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/candid",
"version": "0.9.0",
"version": "0.9.1",
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to work with candid interfaces",
Expand Down
8 changes: 4 additions & 4 deletions packages/identity-ledgerhq/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/identity-ledgerhq",
"version": "0.9.0",
"version": "0.9.1",
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to manage identity and authentication with the Internet Computer",
Expand Down Expand Up @@ -39,9 +39,9 @@
"test:coverage": "jest --verbose --collectCoverage"
},
"peerDependencies": {
"@dfinity/agent": "^0.9.0",
"@dfinity/identity": "^0.9.0",
"@dfinity/principal": "^0.9.0"
"@dfinity/agent": "^0.9.1",
"@dfinity/identity": "^0.9.1",
"@dfinity/principal": "^0.9.1"
},
"dependencies": {
"@ledgerhq/hw-transport": "^5.49.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/identity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/identity",
"version": "0.9.0",
"version": "0.9.1",
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to manage identity with the Internet Computer",
Expand Down Expand Up @@ -37,8 +37,8 @@
"test:coverage": "jest --verbose --collectCoverage"
},
"peerDependencies": {
"@dfinity/agent": "^0.9.0",
"@dfinity/principal": "^0.9.0"
"@dfinity/agent": "^0.9.1",
"@dfinity/principal": "^0.9.1"
},
"dependencies": {
"borc": "^2.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/principal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/principal",
"version": "0.9.0",
"version": "0.9.1",
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"description": "JavaScript and TypeScript library to work with Internet Computer principals",
Expand Down

0 comments on commit 435c87d

Please sign in to comment.