Skip to content

Ci/add autopublish ci - #22

Merged
TheVolpeDev merged 3 commits into
devfrom
ci/add-autopublish-ci-
May 26, 2026
Merged

Ci/add autopublish ci #22
TheVolpeDev merged 3 commits into
devfrom
ci/add-autopublish-ci-

Conversation

@TheVolpeDev

Copy link
Copy Markdown
Owner

This pull request updates the package's naming and publishing configuration to align with the new organization and registry settings. The main changes include updating the package name and registry scope throughout the project and adding a GitHub Actions workflow for automated publishing on release.

Package renaming and registry updates:

  • Changed the package name from @fabi-dev/jsx-utils to @fabiothefox/jsx-utils in package.json to reflect the new naming convention.
  • Updated installation instructions in README.md to use the new package name and registry scope (@fabiogaming/jsx-utils), including .npmrc configuration and install commands.

Automated publishing workflow:

  • Added a new GitHub Actions workflow (.github/workflows/release-publish.yml) that builds, tests, packs, and publishes the package to GitHub Packages when a release is published. This workflow also uploads a zipped release asset.

- Changed package name from "@fabi-dev/jsx-utils" to "@fabiothefox/jsx-utils"
- Corrected NPM package name for installation.
- Updated GitHub installation command with the correct package name.
- Adjusted `.npmrc` file instructions to reflect the correct registry.
- Create a GitHub Actions workflow for automated release publishing.
- Configure steps for building, testing, and publishing to GitHub Packages.
- Include asset packing and uploading as part of the release process.
Copilot AI review requested due to automatic review settings May 26, 2026 22:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the package naming/scope references and introduces a GitHub Actions workflow intended to automatically build/test and publish the package when a GitHub Release is published.

Changes:

  • Renames the package in package.json.
  • Updates README install instructions to reflect new package scope(s).
  • Adds a release-triggered workflow to build/test, upload a packed asset, and publish to GitHub Packages.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
README.md Updates install instructions and .npmrc guidance for the new package scope(s).
package.json Changes the package name/scope used by the project.
.github/workflows/release-publish.yml Adds a release-publish pipeline to build/test, attach a packed artifact, and publish to GitHub Packages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment thread README.md
Comment on lines 39 to 42
For GitHub the installation might require some additional steps, such as:

- Creating an `.npmrc` file with the following content: `@fabi-dev:registry=https://npm.pkg.github.com` at the root of your project
- Creating an `.npmrc` file with the following content: `@fabiogaming:registry=https://npm.pkg.github.com` at the root of your project
- Logging into the GitHub package registry: `npm login --registry=https://npm.pkg.github.com`
Comment thread package.json
@@ -1,5 +1,5 @@
{
"name": "@fabi-dev/jsx-utils",
"name": "@fabiothefox/jsx-utils",
Comment thread package.json
Comment on lines 1 to 3
{
"name": "@fabi-dev/jsx-utils",
"name": "@fabiothefox/jsx-utils",
"version": "1.0.0",
Comment on lines +27 to +33
- name: Pack release zip
id: pack
run: |
PACKAGE_TGZ=$(npm pack --silent)
PACKAGE_ZIP="${PACKAGE_TGZ%.tgz}.zip"
zip -9 "$PACKAGE_ZIP" "$PACKAGE_TGZ"
echo "package_zip=$PACKAGE_ZIP" >> "$GITHUB_OUTPUT"
Comment on lines +45 to +49
scope: "@fabiogaming"

- name: Set GitHub Packages scope
run: npm pkg set name=@fabiogaming/jsx-utils

@TheVolpeDev
TheVolpeDev merged commit 5dfece1 into dev May 26, 2026
2 checks passed
@TheVolpeDev
TheVolpeDev deleted the ci/add-autopublish-ci- branch May 26, 2026 22:19
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