How to update forked repo as dependency during npm install?

I have this project MyProject that uses a forked repo (ForkedRepo) as a dependency.

The thing is: When i make changes in the ForkedRepo i’m not able to npm install correctly in MyProject

What i’m doing: After making changes in ForkedRepo, i change its version in package.json and push to github

When i run npm install in MyProject , it’s ignoring the ForkedRepo dependency and does not install the updated forked package

What’s the correct way to make it work ?

In MyProject package.json i have the following

"dependencies": {
  "mydependency": ""

Git Baby is a git and github fan, let's start git clone.