Skip to content

Commit a8a5917

Browse files
committed
chore: update fork
Signed-off-by: Antonette Caldwell <134739862+nebula-aac@users.noreply.github.com>
2 parents 1b212d4 + 2e5995f commit a8a5917

100 files changed

Lines changed: 6797 additions & 180 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/release-drafter.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name-template: 'Sistent v$NEXT_PATCH_VERSION'
1+
name-template: '@layer5/sistent@v$NEXT_PATCH_VERSION'
22
tag-template: 'v$NEXT_PATCH_VERSION'
33
categories:
44
- title: '🚀 Features'
@@ -15,6 +15,17 @@ categories:
1515
- 'kind/chore'
1616
- 'chore'
1717
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
18+
version-resolver:
19+
major:
20+
labels:
21+
- "major"
22+
minor:
23+
labels:
24+
- "minor"
25+
patch:
26+
labels:
27+
- "patch"
28+
default: patch
1829
template: |
1930
## What's New
2031
$CHANGES

.github/workflows/release.yml

Lines changed: 40 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,45 @@
1-
name: Version and Publish to NPM
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
23

3-
on:
4-
workflow_dispatch:
5-
inputs:
6-
version:
7-
description: 'Specify the version type (patch, minor, major)'
8-
required: true
9-
default: 'patch'
4+
name: Publish Node.js Package
105

11-
jobs:
12-
build:
13-
name: Build
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Checkout Repo
17-
uses: actions/checkout@v4
18-
with:
19-
fetch-depth: 0
20-
token: ${{ secrets.RELEASEDRAFTER_PAT }}
21-
ref: 'master'
22-
23-
- name: Setup Node.js 18.x
24-
uses: actions/setup-node@v3
25-
with:
26-
node-version: 18
27-
registry-url: "https://registry.npmjs.org"
28-
scope: "@layer5"
6+
on:
7+
release:
8+
types: [published]
9+
workflow_dispatch:
10+
inputs:
11+
release-version:
12+
required: true
2913

30-
- name: Install deps and build
31-
run: |
32-
npm install
33-
npm run build
34-
35-
- name: Initialize the NPM config
36-
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
37-
env:
38-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39-
GITHUB_AUTH: ${{ secrets.GH_TOKEN }}
40-
41-
- name: Initialize Git User
42-
run: |
43-
git config user.name "${{ github.actor }}"
44-
git config user.email "${{ github.actor}}@users.noreply.github.com"
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
token: ${{secrets.GH_TOKEN}}
4521

46-
- name: Identify changed packages
47-
id: changed-packages
48-
run: |
49-
echo "Changed packages: $(yarn lerna changed --json | jq -r '.[].name')"
22+
- uses: actions/setup-node@v3
23+
with:
24+
node-version: 18
25+
- run: |
26+
npm install
5027
51-
- name: Check if there are changed packages
52-
run: |
53-
echo "Changed packages: ${{ steps.changed-packages.outputs.changed-packages }}"
54-
if: steps.changed-packages.outputs.changed-packages != ''
55-
56-
- name: Version packages
57-
run: |
58-
if [ "${{ github.event.inputs.version }}" != 'none' ]; then
59-
./scripts/version-release.sh "${{ steps.changed-packages.outputs.changed-packages }}"
60-
else
61-
echo "Skipping versioning based on input."
62-
fi
63-
64-
- name: Use git-auto-commit-action
65-
uses: stefanzweifel/git-auto-commit-action@v5
66-
with:
67-
commit_message: 'chore: publish'
68-
commit_user_name: l5io
69-
commit_user_email: ci@layer5.io
70-
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
71-
commit_options: '--signoff'
72-
73-
- name: Create Git tags
74-
run: ./scripts/create-multiple-git-tag.sh
75-
76-
- name: Publish packages
77-
run: make publish-ci
78-
env:
79-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
80-
GITHUB_AUTH: ${{ secrets.GH_TOKEN }}
81-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
82-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
publish-gpr:
29+
needs: build
30+
runs-on: ubuntu-latest
31+
permissions:
32+
contents: read
33+
packages: write
34+
steps:
35+
- uses: actions/checkout@v4
36+
with:
37+
token: ${{secrets.GH_TOKEN}}
38+
- uses: actions/setup-node@v3
39+
with:
40+
node-version: 18
41+
registry-url: "https://registry.npmjs.org"
42+
scope: "@layer5"
43+
- run: npm publish --verbose
44+
env:
45+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Makefile

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,28 @@
22

33
## Install Sistent dependencies your local machine.
44
package-setup:
5-
yarn install
5+
npm install
66

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

1111
package-format-check:
12-
yarn run format:check
12+
npm run format:check
1313

1414
package-format-fix:
15-
yarn run format:write
15+
npm run format:write
1616

17-
.PHONY: version-patch version-minor version-major version-alpha
17+
.PHONY: version-patch version-minor version-major
1818

1919
# Create a patch version of packages
2020
version-patch:
21-
yarn run versionup:patch
21+
npm run versionup:patch
2222

2323
# Create a minor version of packages
2424
version-minor:
25-
yarn run versionup:minor
25+
npm run versionup:minor
2626

2727
# Create a major versio of packages
2828
version-major:
29-
yarn run versionup:major
30-
31-
# Create beta version of the next minor version
32-
# For example: 0.12.0 => 0.13.0-alpha.0
33-
version-alpha:
34-
yarn run version:alpha
35-
36-
publish-ci:
37-
yarn release-latest:ci
29+
npm run versionup:major

package-lock.json

Lines changed: 15 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@layer5/sistent",
3-
"version": "0.15.0",
3+
"version": "0.14.0",
44
"description": "Reusable React Components and SVG Icons library",
55
"repository": "git@github.com:layer5io/sistent.git",
66
"main": "./dist/index.js",
@@ -74,6 +74,7 @@
7474
"notistack": "^3.0.1",
7575
"prettier": "^3.0.3",
7676
"prettier-plugin-organize-imports": "^3.2.3",
77+
"react-error-boundary": "^4.0.12",
7778
"ts-jest": "^29.1.1",
7879
"tsup": "^8.0.1",
7980
"typescript": "^5.3.3"
104 KB
Binary file not shown.
53.5 KB
Binary file not shown.
26.3 KB
Binary file not shown.
139 KB
Binary file not shown.
72.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)