To use pdf generator library in your local, you will need a github personal access token
(PAT) to install the dependency.
Look at the instructions to generate a PAT
Refer the invoice-pdf-generator in your package.json
as shown below by replacing <PAT>
with your PAT.
You can choose to refer any particular version of the release by changing the version number towards the end of the url.
...
"dependencies": {
...
"jspdf-invoice-template": "git+https://<PAT>:x-oauth-basic@github.com/peakflo/invoice-pdf-generator#v0.0.1"
...
},
...
The respective CI/CD pipeline is automated to replace the value hence the build machine gets access to the git repo. Make sure the token is saved in the secrets.