Skip to content

Comments

Publish a new workflow for duplicating mirror image at brainstormforce/bsf-admin-ui#388

Merged
imnavanath merged 10 commits intomasterfrom
publish-workflow
Feb 9, 2026
Merged

Publish a new workflow for duplicating mirror image at brainstormforce/bsf-admin-ui#388
imnavanath merged 10 commits intomasterfrom
publish-workflow

Conversation

@imnavanath
Copy link
Contributor

Description

This pull request introduces several improvements to the repository's configuration and publishing workflows. The main changes include adding automated GitHub Actions workflows for publishing builds and packages, updating the package configuration for proper publishing to GitHub Packages, and standardizing code style across editors.

Build & Publish Automation:

  • Added a GitHub Actions workflow (.github/workflows/publish-public-build.yml) to automate building the project and pushing build artifacts to a public mirror repository when a release is created.
  • Added a separate GitHub Actions workflow (.github/workflows/publish.yml) to automate publishing the package to GitHub Packages when changes are pushed to the publish-workflow branch.

Package Configuration Updates:

  • Updated the package name in package.json to @brainstormforce/force-ui and set the repository URL to the correct organization and repository. [1] [2]
  • Added a publishConfig section to package.json to specify the GitHub Packages registry and set access to restricted.

Editor Configuration:

  • Added an .editorconfig file to enforce consistent coding styles and indentation across different editors and file types.

Screenshots | Video with voice-over

Link to Figma (If applicable)

How has this been tested?

Checklist:

  • My code is tested
  • Screenshot added in PR
  • Figma design linked
  • My code follows accessibility standards
  • My code has proper inline documentation
  • I have resolved all lint issues
  • My templates are responsive
  • I've added conditional class names use cn()
  • I've followed theme color usage
  • I have used clear and relevant file paths

Add a GitHub Actions workflow (.github/workflows/publish.yml) to publish the package on release events using Node 18, running npm ci, build, and npm publish with NODE_AUTH_TOKEN. Update package.json to set publishConfig.registry to GitHub Packages and correct the repository URL to brainstormforce/force-ui so the package is published to the @brainstormforce scope.
Update package.json to change the npm package scope/name from @bsf/force-ui to @brainstormforce/force-ui to reflect organization branding. No other fields or version were modified.
Introduce .editorconfig to standardize editor/IDE formatting and whitespace rules. Add a GitHub Actions workflow (publish-public-build.yml) that runs on pushes to the publish-workflow branch, builds the project with Node 18, and pushes the generated dist and bumped package.json to a public mirror repo (commits and tags the release). Update package.json publishConfig to include "access": "restricted" for the npm registry.
{
"name": "@bsf/force-ui",
"name": "@brainstormforce/force-ui",
"version": "1.7.7",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What: The addition of the 'publishConfig' section specifies the GitHub Packages registry and sets access to restricted, which is great for managing package visibility.

Why: This change helps prevent unauthorized access to your packages and ensures that only intended users can install or publish to this repository.

How: Make sure that any environment variable/configuration to authenticate with GitHub Packages is properly handled in your CI/CD pipeline, as this is critical for the automation of package publishing.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! ✅ The PR looks solid with no security or performance issues.

Please make sure to resolve any remaining comments if any. Approved 👍

@imnavanath imnavanath merged commit 8e105dd into master Feb 9, 2026
5 checks passed
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.

1 participant