Create a classic Personal Access Token with scopes read:packages
Create an ~/.npmrc and add:
//npm.pkg.github.com/:_authToken=<GH_TOKEN>
@mindhivenz:registry=https://npm.pkg.github.com/
Generate a write token with:
gh auth refresh --scopes write:packages
npm config set //npm.pkg.github.com/:_authToken=$(gh auth token)
cd deploy
yarn gulp release --patch|minor|major|same
To use a branch version of this package in a project:
- Push branch to GitHub to trigger build job
build.shcompiles the ts code and pushes to a new branchrelease/<your_branch>- Then in your project run:
yarn add git+ssh://git@github.com:mindhivenz/deploy-js.git#release/<your_branch>The project's package.json should be updated with:
{
"dependencies": {
"@mindhivenz/deploy": "git+ssh://git@github.com:mindhivenz/deploy-js.git#release/<your_branch>"
}
}