Skip to content

Commit

Permalink
chore: update fork
Browse files Browse the repository at this point in the history
Signed-off-by: Antonette Caldwell <[email protected]>
  • Loading branch information
nebula-aac committed Jan 25, 2024
2 parents 1b212d4 + 2e5995f commit a8a5917
Show file tree
Hide file tree
Showing 100 changed files with 6,797 additions and 180 deletions.
13 changes: 12 additions & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name-template: 'Sistent v$NEXT_PATCH_VERSION'
name-template: '@layer5/sistent@v$NEXT_PATCH_VERSION'
tag-template: 'v$NEXT_PATCH_VERSION'
categories:
- title: '🚀 Features'
Expand All @@ -15,6 +15,17 @@ categories:
- 'kind/chore'
- 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
version-resolver:
major:
labels:
- "major"
minor:
labels:
- "minor"
patch:
labels:
- "patch"
default: patch
template: |
## What's New
$CHANGES
Expand Down
117 changes: 40 additions & 77 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,82 +1,45 @@
name: Version and Publish to NPM
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

on:
workflow_dispatch:
inputs:
version:
description: 'Specify the version type (patch, minor, major)'
required: true
default: 'patch'
name: Publish Node.js Package

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.RELEASEDRAFTER_PAT }}
ref: 'master'

- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
scope: "@layer5"
on:
release:
types: [published]
workflow_dispatch:
inputs:
release-version:
required: true

- name: Install deps and build
run: |
npm install
npm run build
- name: Initialize the NPM config
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_AUTH: ${{ secrets.GH_TOKEN }}

- name: Initialize Git User
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor}}@users.noreply.github.com"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{secrets.GH_TOKEN}}

- name: Identify changed packages
id: changed-packages
run: |
echo "Changed packages: $(yarn lerna changed --json | jq -r '.[].name')"
- uses: actions/setup-node@v3
with:
node-version: 18
- run: |
npm install
- name: Check if there are changed packages
run: |
echo "Changed packages: ${{ steps.changed-packages.outputs.changed-packages }}"
if: steps.changed-packages.outputs.changed-packages != ''

- name: Version packages
run: |
if [ "${{ github.event.inputs.version }}" != 'none' ]; then
./scripts/version-release.sh "${{ steps.changed-packages.outputs.changed-packages }}"
else
echo "Skipping versioning based on input."
fi
- name: Use git-auto-commit-action
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'chore: publish'
commit_user_name: l5io
commit_user_email: [email protected]
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
commit_options: '--signoff'

- name: Create Git tags
run: ./scripts/create-multiple-git-tag.sh

- name: Publish packages
run: make publish-ci
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_AUTH: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
with:
token: ${{secrets.GH_TOKEN}}
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
scope: "@layer5"
- run: npm publish --verbose
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24 changes: 8 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,28 @@

## Install Sistent dependencies your local machine.
package-setup:
yarn install
npm install

## Build Sistent components and packages on your local machine.
package-build: setup
yarn run build-all
npm run build

package-format-check:
yarn run format:check
npm run format:check

package-format-fix:
yarn run format:write
npm run format:write

.PHONY: version-patch version-minor version-major version-alpha
.PHONY: version-patch version-minor version-major

# Create a patch version of packages
version-patch:
yarn run versionup:patch
npm run versionup:patch

# Create a minor version of packages
version-minor:
yarn run versionup:minor
npm run versionup:minor

# Create a major versio of packages
version-major:
yarn run versionup:major

# Create beta version of the next minor version
# For example: 0.12.0 => 0.13.0-alpha.0
version-alpha:
yarn run version:alpha

publish-ci:
yarn release-latest:ci
npm run versionup:major
17 changes: 15 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@layer5/sistent",
"version": "0.15.0",
"version": "0.14.0",
"description": "Reusable React Components and SVG Icons library",
"repository": "[email protected]:layer5io/sistent.git",
"main": "./dist/index.js",
Expand Down Expand Up @@ -74,6 +74,7 @@
"notistack": "^3.0.1",
"prettier": "^3.0.3",
"prettier-plugin-organize-imports": "^3.2.3",
"react-error-boundary": "^4.0.12",
"ts-jest": "^29.1.1",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
Expand Down
Binary file added src/assets/fonts/QanelasSoftBlack.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftBlack.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftBlack.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftBlackItalic.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftBlackItalic.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftBlackItalic.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftBold.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftBold.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftBold.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftBoldItalic.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftBoldItalic.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftBoldItalic.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftExtraBold.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftExtraBold.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftExtraBold.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftExtraBoldItalic.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftExtraBoldItalic.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftExtraBoldItalic.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftHeavy.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftHeavy.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftHeavyItalic.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftHeavyItalic.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftHeavyItalic.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftLight.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftLight.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftLight.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftLightItalic.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftLightItalic.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftLightItalic.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftMedium.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftMedium.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftMediumItalic.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftMediumItalic.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftRegular.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftRegular.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftRegular.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftRegularItalic.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftRegularItalic.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftRegularItalic.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftSemiBold.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftSemiBold.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftSemiBold.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftSemiBoldItalic.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftSemiBoldItalic.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftSemiBoldItalic.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftThin.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftThin.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftThin.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftThinItalic.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftThinItalic.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftThinItalic.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftUltraLight.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftUltraLight.woff
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftUltraLight.woff2
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftUltraLightItalic.otf
Binary file not shown.
Binary file added src/assets/fonts/QanelasSoftUltraLightItalic.woff
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions src/base/Link/Link.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Link as MuiLink, LinkProps as MuiLinkProps } from '@mui/material';

export function Link(props: MuiLinkProps): JSX.Element {
return <MuiLink {...props} />;
}
1 change: 1 addition & 0 deletions src/base/Link/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Link } from './Link';
Loading

0 comments on commit a8a5917

Please sign in to comment.