Ci/add autopublish ci - #22
Merged
Merged
Conversation
- 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.
Contributor
There was a problem hiding this comment.
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 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` |
| @@ -1,5 +1,5 @@ | |||
| { | |||
| "name": "@fabi-dev/jsx-utils", | |||
| "name": "@fabiothefox/jsx-utils", | |||
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 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
@fabi-dev/jsx-utilsto@fabiothefox/jsx-utilsinpackage.jsonto reflect the new naming convention.README.mdto use the new package name and registry scope (@fabiogaming/jsx-utils), including.npmrcconfiguration and install commands.Automated publishing 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.