Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Release Publish

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- run: npm ci
- run: npm run format:check
- run: npm run build
- run: npm run test:run

- 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 +27 to +33

- name: Upload release asset
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.pack.outputs.package_zip }}

- name: Setup GitHub Packages registry
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com
scope: "@fabiogaming"

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

Comment on lines +45 to +49
- name: Publish to GitHub Packages
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ JSX-Utils features both this, as well as a built in documentation that you can v

To get started with JSX Utils you can install it both through NPM as well as GitHub's package registry

NPM Install (recommended): `npm install @fabi-dev/jsx-utils`
NPM Install (recommended): `npm install @fabiothefox/jsx-utils`
Comment thread
TheVolpeDev marked this conversation as resolved.

GitHub Install: `npm install @fabi-dev/jsx-utils --registry=https://npm.pkg.github.com`
GitHub Install: `npm install @fabiogaming/jsx-utils --registry=https://npm.pkg.github.com`

**Note**
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 on lines 39 to 42

### 2.2 Added JSX-Nodes With Examples
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@fabi-dev/jsx-utils",
"name": "@fabiothefox/jsx-utils",
"version": "1.0.0",
Comment on lines 1 to 3
"description": "SolidJS-inspired JSX control flow utilities for React ecosystems",
"license": "MIT",
Expand Down
Loading