Skip to content

Add automated package build and publish workflow#1

Merged
warengonzaga merged 4 commits intomainfrom
copilot/add-package-build-flow-action
Jan 31, 2026
Merged

Add automated package build and publish workflow#1
warengonzaga merged 4 commits intomainfrom
copilot/add-package-build-flow-action

Conversation

Copy link
Contributor

Copilot AI commented Jan 31, 2026

Integrates wgtechlabs/package-build-flow-action for automated NPM package versioning and dual-registry publishing (NPM + GitHub Packages).

Changes

New workflow: .github/workflows/package-build-flow.yml

  • Triggers on PRs and pushes to main/dev branches
  • Intelligent flow detection: generates version suffixes based on branch context (pr, dev, patch, staging, wip)
  • Auto-scoped for GitHub Packages using repository owner
  • Security: npm audit at high severity threshold (non-blocking)
  • PR comments with installation instructions and audit results

Configuration

  • Action version: v1.0.0 (not v1 - that tag doesn't exist)
  • pnpm: Auto-detected from package.json packageManager field (removed explicit version to avoid conflict)
  • Node.js: 20
  • Permissions: packages: write, pull-requests: write

Required secrets

  • NPM_TOKEN for NPM Registry publishing
  • GITHUB_TOKEN (auto-provided) for GitHub Packages

The workflow will publish pre-release versions with appropriate dist-tags to prevent accidental installation of non-production builds.

Original prompt

Make a PR to dev branch and add this: https://github.com/wgtechlabs/package-build-flow-action


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: warengonzaga <15052701+warengonzaga@users.noreply.github.com>
Copilot AI changed the title [WIP] Add package build flow action to dev branch Add automated package build and publish workflow Jan 31, 2026
Copilot AI requested a review from warengonzaga January 31, 2026 09:28
@warengonzaga warengonzaga marked this pull request as ready for review January 31, 2026 09:30
@coderabbitai
Copy link

coderabbitai bot commented Jan 31, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Comment @coderabbitai help to get the list of available commands and usage tips.

Co-authored-by: warengonzaga <15052701+warengonzaga@users.noreply.github.com>
Copilot AI changed the title Add automated package build and publish workflow Fix package-build-flow-action version tag Jan 31, 2026
Co-authored-by: warengonzaga <15052701+warengonzaga@users.noreply.github.com>
Copilot AI changed the title Fix package-build-flow-action version tag Add automated package build and publish workflow Jan 31, 2026
@warengonzaga warengonzaga merged commit 052389a into main Jan 31, 2026
1 check passed
@warengonzaga warengonzaga deleted the copilot/add-package-build-flow-action branch January 31, 2026 10:00
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