Skip to content

feat: publish npm package to GitHub Packages#60

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/connect-npm-package-to-github-packages
Closed

feat: publish npm package to GitHub Packages#60
Copilot wants to merge 2 commits intomainfrom
copilot/connect-npm-package-to-github-packages

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 10, 2026

Switches the publish target from npmjs.org to GitHub Packages so the package appears in the repo's Packages section. No external registry secret is needed — authentication uses the built-in GITHUB_TOKEN.

package.json

  • Package scoped to @marcomg-byte/offser (required by GitHub Packages)
  • publishConfig.registry set to https://npm.pkg.github.com

.github/workflows/publish.yml

  • Both jobs: registry-urlhttps://npm.pkg.github.com/, added scope: '@marcomg-byte'
  • publish job: added packages: write permission, swapped secrets.NODE_AUTH_TOKEN for secrets.GITHUB_TOKEN
  • npm view version checks updated to @marcomg-byte/offser --registry https://npm.pkg.github.com

README.md

  • Install commands updated to npm install -g @marcomg-byte/offser
  • Registry link points to GitHub Packages
  • Workflow description updated to reflect GITHUB_TOKEN auth

Agent-Logs-Url: https://github.com/marcomg-byte/offser/sessions/ceb16e6c-d834-4939-9f94-b6471a3bcdfc

Co-authored-by: marcomg-byte <60870826+marcomg-byte@users.noreply.github.com>
@marcomg-byte
Copy link
Copy Markdown
Owner

@copilot This will make the following section be enabled?

Screenshot 2026-04-10 at 1 00 32 p m

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 10, 2026

@copilot This will make the following section be enabled?

<img width="1436" height="659" alt="Screenshot 2026-04-10 at 1 00 32 p m" src="https://github.com/user-attachments/assets/54507d9e-9f62-4...

Yes! Once this PR is merged and a version tag (e.g. v1.1.5) is pushed — which happens automatically when a PR with a patch/minor/major label is merged into main — the publish workflow will run and publish @marcomg-byte/offser to GitHub Packages. After that, the "Packages" section will show the package instead of "No packages published".

@marcomg-byte marcomg-byte deleted the copilot/connect-npm-package-to-github-packages branch April 10, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants