Skip to content

Commit 5b75204

Browse files
committed
feat(lib): setup package releases using changesets
1 parent 7bbd9b4 commit 5b75204

File tree

8 files changed

+758
-24
lines changed

8 files changed

+758
-24
lines changed

.changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": ["@aonic-ui/docs"]
11+
}

.changeset/silent-rules-rescue.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"@aonic-ui/pipelines": major
3+
---
4+
5+
### New features
6+
7+
- Output Component https://github.com/redhat-developer/aonic-ui/pull/7
8+
- 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.
9+
10+
- Enterprise contract card
11+
- EC policy report information is visualized in tabular format.
12+
- Advanced Cluster security card
13+
- ACS card visualizes the security scan/check reports in tabular format. It supports three subtabs namely Image Scan, Image check and Deployment check.
14+
- Other results card
15+
- This section renders the key/value pairs in tabular format.

.changeset/yellow-meals-stare.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aonic-ui/core": minor
3+
---
4+
5+
Bootstrapped @aonic-ui library and added sample component to @aonic-ui/core

.github/workflows/cd.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Aonic UI CD
1+
name: Aonic UI Deploy & Release
22

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

@@ -47,3 +47,13 @@ jobs:
4747
with:
4848
branch: gh-pages # The branch the action should deploy to.
4949
folder: docs/storybook-static # The folder the action should deploy.
50+
51+
- name: Create Release Pull Request or Publish to npm 🚀
52+
id: changesets
53+
uses: changesets/action@v1
54+
with:
55+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
56+
publish: yarn release
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
NPM_TOKEN: ${{ secrets.AONIC_NPM_TOKEN }}

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Aonic UI CI
1+
name: Aonic UI PR Check
22

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

package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,15 @@
2828
"lint": "turbo run lint",
2929
"test": "turbo run test",
3030
"clean": "turbo run clean && rm -rf node_modules",
31-
"format": "prettier --write \"**/*.{ts,tsx,md}\""
31+
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
32+
"changeset": "changeset",
33+
"version-packages": "changeset version",
34+
"release": "turbo run build --filter=docs^... && changeset publish"
3235
},
3336
"devDependencies": {
37+
"@changesets/cli": "^2.27.1",
3438
"prettier": "^3.2.4",
35-
"turbo": "latest"
39+
"turbo": "^1.11.3"
3640
},
3741
"packageManager": "[email protected]",
3842
"workspaces": [

0 commit comments

Comments
 (0)