diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 92a226bc2..f7451aceb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: diff --git a/README.md b/README.md index 05a1362cf..b69eccb95 100644 --- a/README.md +++ b/README.md @@ -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". diff --git a/apps/sw-cert/package.json b/apps/sw-cert/package.json index 4df5f1374..0e25a919a 100644 --- a/apps/sw-cert/package.json +++ b/apps/sw-cert/package.json @@ -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", @@ -29,5 +29,5 @@ "test:coverage": "", "test": "" }, - "version": "0.9.0" + "version": "0.9.1" } diff --git a/demos/ledgerhq/package.json b/demos/ledgerhq/package.json index 907ea4b59..53a9321b6 100644 --- a/demos/ledgerhq/package.json +++ b/demos/ledgerhq/package.json @@ -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", @@ -27,5 +27,5 @@ "test:coverage": "", "test": "" }, - "version": "0.9.0" + "version": "0.9.1" } diff --git a/demos/sample-javascript/package.json b/demos/sample-javascript/package.json index af651c9c6..969912162 100644 --- a/demos/sample-javascript/package.json +++ b/demos/sample-javascript/package.json @@ -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", @@ -25,5 +25,5 @@ "test:coverage": "", "test": "" }, - "version": "0.9.0" + "version": "0.9.1" } diff --git a/e2e/node/package.json b/e2e/node/package.json index 3e424417f..afdc851ad 100644 --- a/e2e/node/package.json +++ b/e2e/node/package.json @@ -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", @@ -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", diff --git a/package.json b/package.json index 0f841d136..5de4c6bc8 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/packages/agent/package.json b/packages/agent/package.json index c532b0447..977c49df8 100644 --- a/packages/agent/package.json +++ b/packages/agent/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/agent", - "version": "0.9.0", + "version": "0.9.1", "author": "DFINITY Stiftung ", "license": "Apache-2.0", "description": "JavaScript and TypeScript library to interact with the Internet Computer", @@ -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", diff --git a/packages/auth-client/package.json b/packages/auth-client/package.json index 45e5f47bc..c04a759b0 100644 --- a/packages/auth-client/package.json +++ b/packages/auth-client/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/auth-client", - "version": "0.9.0", + "version": "0.9.1", "author": "DFINITY Stiftung ", "license": "Apache-2.0", "description": "JavaScript and TypeScript library to provide a simple integration with an IC Internet Identity", @@ -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", diff --git a/packages/authentication/package.json b/packages/authentication/package.json index 4f7724e60..348bebe04 100644 --- a/packages/authentication/package.json +++ b/packages/authentication/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/authentication", - "version": "0.9.0", + "version": "0.9.1", "author": "DFINITY Stiftung ", "license": "Apache-2.0", "description": "JavaScript and TypeScript library to manage identity and authentication with the Internet Computer", @@ -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", diff --git a/packages/candid/package.json b/packages/candid/package.json index c7f3f26b9..3d59256aa 100644 --- a/packages/candid/package.json +++ b/packages/candid/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/candid", - "version": "0.9.0", + "version": "0.9.1", "author": "DFINITY Stiftung ", "license": "Apache-2.0", "description": "JavaScript and TypeScript library to work with candid interfaces", diff --git a/packages/identity-ledgerhq/package.json b/packages/identity-ledgerhq/package.json index f5697482c..ab421c3e3 100644 --- a/packages/identity-ledgerhq/package.json +++ b/packages/identity-ledgerhq/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/identity-ledgerhq", - "version": "0.9.0", + "version": "0.9.1", "author": "DFINITY Stiftung ", "license": "Apache-2.0", "description": "JavaScript and TypeScript library to manage identity and authentication with the Internet Computer", @@ -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", diff --git a/packages/identity/package.json b/packages/identity/package.json index 3dceb5ec0..a39269913 100644 --- a/packages/identity/package.json +++ b/packages/identity/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/identity", - "version": "0.9.0", + "version": "0.9.1", "author": "DFINITY Stiftung ", "license": "Apache-2.0", "description": "JavaScript and TypeScript library to manage identity with the Internet Computer", @@ -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", diff --git a/packages/principal/package.json b/packages/principal/package.json index cb5cbf03e..1814259fe 100644 --- a/packages/principal/package.json +++ b/packages/principal/package.json @@ -1,6 +1,6 @@ { "name": "@dfinity/principal", - "version": "0.9.0", + "version": "0.9.1", "author": "DFINITY Stiftung ", "license": "Apache-2.0", "description": "JavaScript and TypeScript library to work with Internet Computer principals",