{"id":20788876,"url":"https://github.com/erkobridee/use-my-ghp-lib","last_synced_at":"2026-05-19T14:32:25.232Z","repository":{"id":48835990,"uuid":"343408582","full_name":"erkobridee/use-my-ghp-lib","owner":"erkobridee","description":"project example of how to consume the @erkobridee/my-ghp-lib from the GitHub Packages","archived":false,"fork":false,"pushed_at":"2023-12-15T17:43:00.000Z","size":356,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-18T10:21:12.917Z","etag":null,"topics":["example","github-packages","nodejs","package","project"],"latest_commit_sha":null,"homepage":"https://erkobridee.github.io/use-my-ghp-lib","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erkobridee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-01T12:28:44.000Z","updated_at":"2023-03-08T23:46:54.000Z","dependencies_parsed_at":"2022-09-11T22:00:28.382Z","dependency_job_id":null,"html_url":"https://github.com/erkobridee/use-my-ghp-lib","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkobridee%2Fuse-my-ghp-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkobridee%2Fuse-my-ghp-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkobridee%2Fuse-my-ghp-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erkobridee%2Fuse-my-ghp-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erkobridee","download_url":"https://codeload.github.com/erkobridee/use-my-ghp-lib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243132194,"owners_count":20241359,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["example","github-packages","nodejs","package","project"],"created_at":"2024-11-17T15:17:41.024Z","updated_at":"2025-09-23T21:54:49.268Z","avatar_url":"https://github.com/erkobridee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# use-my-ghp-lib\n\nThis is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).\n\n## Goal\n\ntest project to use the [@erkobridee/my-ghp-lib](https://github.com/erkobridee/my-ghp-lib) from the GitHub Packages\n\n## Project setup\n\n```\nnpx create-next-app use-my-ghp-lib --use-npm\n\ncd use-my-ghp-lib\n\nnpm i -D @types/react @types/react-dom @types/node typescript\n\ntouch tsconfig.json\n\nnext dev\n```\n\n### Configuring npm for use with GitHub Packages\n\n\u003e **TODO:** create a [GITHUB_PAT](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) with the access to only read packages\n\u003e\n\u003e [Configuring npm for use with GitHub Packages | GitHub Docs](https://docs.github.com/en/packages/guides/configuring-npm-for-use-with-github-packages)\n\nThere are 2 possible ways to access and use packages from the GitHub packages\n\n#### .npmrc\n\n\u003e useful to use on CI/CD pipelines\n\n```\n//npm.pkg.github.com/:_authToken=${GITHUB_PAT}\n\n@erkobridee:registry=https://npm.pkg.github.com/\n```\n\n#### login into the GitHub Packages\n\n\u003e recommended on the developer machine, this will add the access to the global .npmrc file\n\n```sh\n$ npm login --scope=@erkobridee --registry=https://npm.pkg.github.com\n\n\u003e Username: USERNAME\n\u003e Password: GITHUB_PAT\n\u003e Email: PUBLIC-EMAIL-ADDRESS\n\n$ echo \"@erkobridee:registry=https://npm.pkg.github.com/\" \u003e\u003e ~/.npmrc\n```\n\n## CLI commands\n\n- development: `npm start` - ( http://localhost:3000 )\n\n## Documentation\n\n- [Next.js](docs/nextjs.md)\n\n- GitHub\n\n  - [GitHub Packages](docs/github-packages.md)\n\n  - [GitHub Action](docs/github-actions.md)\n\n- [Dev environment known issues](docs/dev-env-known-issues.md)\n\n## Useful reference\n\n- [Private NPM Packages with GitHub Actions \u0026 Packages | Brian Morrison II](https://brianmorrison.me/blog/private-npm-packages-with-github-actions-\u0026-packages/)\n\n  - [[YouTube] Private NPM Packages using GitHub Actions \u0026 Packages](https://www.youtube.com/watch?v=7CNC0QBCY-Y) - 2020/09/29\n\n- [Github Actions with private package (Github Package Registry or NPM) | charliejwalter.net](https://charliejwalter.net/github-actions-with-private-package-github-package-registry-or-npm/) - 2020/03/31\n\n- [Deploying a Next.js app to GitHub Pages - DEV Community 👩‍💻👨‍💻](https://dev.to/jameswallis/deploying-a-next-js-app-to-github-pages-24pn) - 2020/02/26\n\n- [[GitHub] erkobridee/nextjs-ssg-hello](https://github.com/erkobridee/nextjs-ssg-hello)\n\n- [Going Truly Serverless with Next.js Static Site Generation](https://zzzachzzz.github.io/blog/going-truly-serverless-with-nextjs-static-site-generation) - 2021/02/20\n\n---\n\n- [[GitHub Action] Cancel Workflow Action](https://github.com/marketplace/actions/cancel-workflow-action)\n\n- [GitHub Actions: Manual triggers with workflow_dispatch | GitHub Blog](https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/) - 2020/06/06\n\n### GitHub Action know issue\n\n- [Github package registry - Private package not found](https://github.community/t/github-package-registry-private-package-not-found/14500)\n\n\u003e if you're consuming a GitHub package from a different account or from a GitHub organization, you'll need to have a GitHub Personal Access Token from there with the rights to read GitHub Packages\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferkobridee%2Fuse-my-ghp-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferkobridee%2Fuse-my-ghp-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferkobridee%2Fuse-my-ghp-lib/lists"}