Skip to content

Commit

Permalink
chore: add changeset and release plan
Browse files Browse the repository at this point in the history
  • Loading branch information
mashafrancis committed Jul 20, 2023
1 parent b6db445 commit 23212d5
Show file tree
Hide file tree
Showing 8 changed files with 155 additions and 89 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/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
7 changes: 7 additions & 0 deletions .changeset/twelve-chairs-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@almond-ui/storybook': major
'@almond-ui/core': major
'@almond-ui/docs': major
---

Major release Almond-UI tailwind components
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Install pnpm Manager
uses: pnpm/action-setup@v2
with:
version: 7

- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "pnpm"

- name: Install Dependencies
run: pnpm install

- 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: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf .next && rm -rf .contentlayer"
},
"dependencies": {
"@almond-ui/core": "workspace:*",
"@almond-ui/core": "1.0.0",
"@codesandbox/sandpack-react": "^2.6.9",
"@phosphor-icons/react": "^2.0.10",
"@types/node": "^20.4.2",
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clean": "rm -rf .turbo && rm -rf node_modules"
},
"dependencies": {
"@almond-ui/core": "workspace:*",
"@almond-ui/core": "1.0.0",
"@phosphor-icons/react": "^2.0.10",
"class-variance-authority": "^0.7.0",
"react": "^18.2.0",
Expand Down
170 changes: 85 additions & 85 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,87 +1,87 @@
{
"name": "@almond-ui/core",
"description": "A React component library for building modern web applications using Tailwind CSS.",
"version": "0.10.1",
"license": "MIT",
"author": {
"name": "Francis Masha",
"email": "francismasha96@gmail.com"
},
"homepage": "https://almond-ui.dev/",
"repository": {
"url": "https://github.com/mashafrancis/almond-ui.git",
"type": "git",
"directory": "packages/core"
},
"bugs": {
"url": "https://github.com/mashafrancis/almond-ui/issues"
},
"keywords": [
"react",
"reactjs",
"tailwind",
"tailwindcss",
"nextjs",
"components",
"ui-kit"
],
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"sideEffects": false,
"files": [
"dist/**",
"README.md"
],
"scripts": {
"prebuild": "rm -rf dist",
"build": "rollup -c rollup.config.mjs",
"dev": "pnpm run build --watch",
"lint": "eslint \"src/**/*.ts*\"",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"test": "vitest run"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.3",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "^11.1.2",
"@testing-library/react": "^14.0.0",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"eslint": "^8.45.0",
"eslint-config-next": "latest",
"eslint-config-prettier": "^8.8.0",
"eslint-config-turbo": "latest",
"eslint-plugin-react": "7.32.2",
"happy-dom": "^10.5.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^3.26.3",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-preserve-directives": "^0.2.0",
"rollup-plugin-typescript-paths": "^1.4.0",
"tsc-alias": "^1.8.7",
"tslib": "^2.6.0",
"typescript": "^5.1.6",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.33.0"
},
"dependencies": {
"@floating-ui/react": "^0.24.8",
"@floating-ui/react-dom": "^2.0.1",
"@tailwindcss/forms": "^0.5.4",
"class-variance-authority": "^0.7.0",
"framer-motion": "^10.12.22",
"tailwind-merge": "^1.14.0",
"tailwind-scrollbar": "^3.0.4"
},
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"publishConfig": {
"access": "public"
}
"name": "@almond-ui/core",
"description": "A React component library for building modern web applications using Tailwind CSS.",
"version": "1.0.0",
"license": "MIT",
"author": {
"name": "Francis Masha",
"email": "francismasha96@gmail.com"
},
"homepage": "https://almond-ui.dev/",
"repository": {
"url": "https://github.com/mashafrancis/almond-ui.git",
"type": "git",
"directory": "packages/core"
},
"bugs": {
"url": "https://github.com/mashafrancis/almond-ui/issues"
},
"keywords": [
"react",
"reactjs",
"tailwind",
"tailwindcss",
"nextjs",
"components",
"ui-kit"
],
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"sideEffects": false,
"files": [
"dist/**",
"README.md"
],
"scripts": {
"prebuild": "rm -rf dist",
"build": "rollup -c rollup.config.mjs",
"dev": "pnpm run build --watch",
"lint": "eslint \"src/**/*.ts*\"",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"test": "vitest run"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.3",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "^11.1.2",
"@testing-library/react": "^14.0.0",
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"eslint": "^8.45.0",
"eslint-config-next": "latest",
"eslint-config-prettier": "^8.8.0",
"eslint-config-turbo": "latest",
"eslint-plugin-react": "7.32.2",
"happy-dom": "^10.5.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^3.26.3",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-preserve-directives": "^0.2.0",
"rollup-plugin-typescript-paths": "^1.4.0",
"tsc-alias": "^1.8.7",
"tslib": "^2.6.0",
"typescript": "^5.1.6",
"vite-tsconfig-paths": "^4.2.0",
"vitest": "^0.33.0"
},
"dependencies": {
"@floating-ui/react": "^0.24.8",
"@floating-ui/react-dom": "^2.0.1",
"@tailwindcss/forms": "^0.5.4",
"class-variance-authority": "^0.7.0",
"framer-motion": "^10.12.22",
"tailwind-merge": "^1.14.0",
"tailwind-scrollbar": "^3.0.4"
},
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"publishConfig": {
"access": "public"
}
}
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

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

0 comments on commit 23212d5

Please sign in to comment.