Skip to content

Add CI/CD for npm publishing and GitHub Pages deployment#3

Merged
uanid merged 2 commits intomainfrom
copilot/add-npm-publish-script
Feb 14, 2026
Merged

Add CI/CD for npm publishing and GitHub Pages deployment#3
uanid merged 2 commits intomainfrom
copilot/add-npm-publish-script

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 14, 2026

Automates package publishing to npm and demo site deployment to GitHub Pages.

Workflows

  • publish-npm.yml: Publishes @minigames-react/minesweeper on release creation or manual trigger

    • Uses NPM_TOKEN secret for authentication
    • Includes --access public --no-git-checks flags for scoped package publishing
  • deploy-pages.yml: Deploys demo site on main branch pushes

    • Sets GITHUB_PAGES=true env var to configure correct base path
    • Uses GitHub Actions deployment (not branch-based)

Configuration Changes

  • vite.config.ts: Dynamic base path - /minigames-react/ for GitHub Pages, ./ for local
  • package.json: Added repository metadata and MIT license
  • Added .nojekyll to prevent Jekyll processing

Required Setup

See DEPLOYMENT.md for complete instructions:

  1. npm: Add NPM_TOKEN secret with Automation token from npmjs.com
  2. GitHub Pages: Set Source to "GitHub Actions" in Settings → Pages

Demo will be at: https://pubg.github.io/minigames-react/


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: uanid <35264628+uanid@users.noreply.github.com>
Copilot AI changed the title [WIP] Add script for publishing npm package Add CI/CD for npm publishing and GitHub Pages deployment Feb 14, 2026
Copilot AI requested a review from uanid February 14, 2026 06:49
@uanid uanid marked this pull request as ready for review February 14, 2026 06:54
@uanid uanid merged commit 3ff9547 into main Feb 14, 2026
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