Skip to content

Commit

Permalink
feat(lib): setup package releases using changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitkrai03 committed Jan 24, 2024
1 parent 7bbd9b4 commit 5b75204
Show file tree
Hide file tree
Showing 8 changed files with 758 additions and 24 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["@aonic-ui/docs"]
}
15 changes: 15 additions & 0 deletions .changeset/silent-rules-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"@aonic-ui/pipelines": major
---

### New features

- Output Component https://github.com/redhat-developer/aonic-ui/pull/7
- Added Enterprise contract, Advanced cluster security and Other pipelinerun result sections. Each section is conditionally rendered based on the availablity of the data and provides overview, summary and report. These are expandable/collapsable sections and provides ability to filter and sort by the columns.

- Enterprise contract card
- EC policy report information is visualized in tabular format.
- Advanced Cluster security card
- ACS card visualizes the security scan/check reports in tabular format. It supports three subtabs namely Image Scan, Image check and Deployment check.
- Other results card
- This section renders the key/value pairs in tabular format.
5 changes: 5 additions & 0 deletions .changeset/yellow-meals-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aonic-ui/core": minor
---

Bootstrapped @aonic-ui library and added sample component to @aonic-ui/core
14 changes: 12 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Aonic UI CD
name: Aonic UI Deploy & Release

# Controls when the action will run.
on:
Expand All @@ -15,7 +15,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
# This workflow contains a single job called "deploy"
deploy:
name: Deploy
name: Deploy & Release
# The type of runner that the job will run on
runs-on: ubuntu-latest

Expand Down Expand Up @@ -47,3 +47,13 @@ jobs:
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/storybook-static # The folder the action should deploy.

- name: Create Release Pull Request or Publish to npm 🚀
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.AONIC_NPM_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Aonic UI CI
name: Aonic UI PR Check

# Controls when the action will run.
on:
Expand All @@ -15,7 +15,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
# This workflow contains a single job called "test"
test:
name: Test
name: PR Check
# The type of runner that the job will run on
runs-on: ubuntu-latest

Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,15 @@
"lint": "turbo run lint",
"test": "turbo run test",
"clean": "turbo run clean && rm -rf node_modules",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"changeset": "changeset",
"version-packages": "changeset version",
"release": "turbo run build --filter=docs^... && changeset publish"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"prettier": "^3.2.4",
"turbo": "latest"
"turbo": "^1.11.3"
},
"packageManager": "[email protected]",
"workspaces": [
Expand Down
Loading

0 comments on commit 5b75204

Please sign in to comment.