diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..078bacf --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,16 @@ +name: Release Package + +on: + push: + branches: + - main + +permissions: + contents: read + packages: write + id-token: write + +jobs: + release: + uses: rubriclab/package/.github/workflows/release-package.yml@main + secrets: inherit diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b74dc7..9f128fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +- [2024-10-01] [release with new package pattern](https://github.com/RubricLab/ui/commit/7db12b103f2d6db6e15617fa951f76dc411e0b68) # @rubriclab/ui ## 0.0.1 diff --git a/package.json b/package.json index 493384d..17e63fa 100644 --- a/package.json +++ b/package.json @@ -1,98 +1,102 @@ { - "name": "rubricui", - "version": "0.0.17", - "main": "dist/index.js", - "types": "dist/index.d.ts", - "description": "UI package by Rubric Labs", - "scripts": { - "build": "NODE_ENV=production bun run build.mjs", - "tailwind": "bunx tailwindcss -i ./src/styles.css -o ./dist/output.css", - "watch": "bun run build --watch", - "prepublishOnly": "bun run build", - "clean": "rm -rf node_modules && rm -rf bun.lockb", - "bleed": "bunx npm-check-updates -u && bun i", - "format": "prettier --write .", - "lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.json,.ts,.tsx", - "lint:fix": "eslint . --ext .js,.jsx,.cjs,.mjs,.json,.ts,.tsx --fix" - }, - "bin": { - "rubricui": "./bin/execute.js" - }, - "files": [ - "dist/*.js", - "dist/*.d.ts", - "dist/*.css", - "bin/commands", - "bin/config" - ], - - "keywords": [ - "tailwindcss", - "react", - "ui", - "bun" - ], - "license": "MIT", - "homepage": "https://github.com/RubricLab/ui#readme", - "repository": { - "type": "git", - "url": "git+https://github.com/RubricLab/ui.git" - }, - "bugs": "https://github.com/RubricLab/ui/issues", - "author": "Rubric Labs ", - "module": "src/index.ts", - "devDependencies": { - "@rubriclab/eslint-config": "^1.1.4", - "@rubriclab/prettier-config": "^1.1.1", - "@types/bun": "latest", - "@types/react": "^18", - "@types/react-dom": "^18", - "autoprefixer": "^10.4.20", - "bun-plugin-dts": "latest", - "npm-check-updates": "^17.1.1", - "postcss": "^8.4.45", - "tailwindcss": "^3.4.10", - "typescript": "^5.5.4" - }, - "peerDependencies": { - "typescript": "^5.2.2", - "react": "^18", - "react-dom": "^18" - }, - "type": "module", - "dependencies": { - "@hookform/resolvers": "^3.9.0", - "@radix-ui/react-accordion": "^1.2.0", - "@radix-ui/react-checkbox": "^1.1.1", - "@radix-ui/react-context-menu": "^2.2.1", - "@radix-ui/react-dialog": "^1.1.1", - "@radix-ui/react-label": "^2.1.0", - "@radix-ui/react-popover": "^1.1.1", - "@radix-ui/react-select": "^2.1.1", - "@radix-ui/react-slot": "^1.1.0", - "@radix-ui/react-switch": "^1.1.0", - "@radix-ui/react-toggle": "^1.1.0", - "@radix-ui/react-tooltip": "^1.1.2", - "@tailwindcss/typography": "^0.5.15", - "@types/react-grid-layout": "^1.3.5", - "chalk": "^5.3.0", - "clsx": "^2.1.1", - "commander": "^12.1.0", - "date-fns": "^3.6.0", - "markdown-to-jsx": "^7.5.0", - "prism-react-renderer": "^2.4.0", - "prismjs": "^1.29.0", - "prompts": "^2.4.2", - "react-day-picker": "^9.0.8", - "react-grid-layout": "^1.4.4", - "react-hook-form": "^7.53.0", - "tailwind-merge": "^2.5.2", - "tailwindcss-animate": "^1.0.7", - "zod": "^3.23.8" - }, - "publishConfig": { - "@RubricLab:registry": "https://registry.npmjs.org", - "access": "public", - "registry": "https://registry.npmjs.org" - } + "name": "rubricui", + "version": "0.0.18", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "description": "UI package by Rubric Labs", + "scripts": { + "build": "NODE_ENV=production bun run build.mjs", + "tailwind": "bunx tailwindcss -i ./src/styles.css -o ./dist/output.css", + "watch": "bun run build --watch", + "prepublishOnly": "bun run build", + "clean": "rm -rf .next && rm -rf node_modules", + "bleed": "bunx npm-check-updates -u && bun i", + "format": "prettier --write .", + "lint": "eslint .", + "lint:fix": "eslint . --fix", + "prepare": "bunx simple-git-hooks" + }, + "bin": { + "rubricui": "./bin/execute.js" + }, + "files": [ + "dist/*.js", + "dist/*.d.ts", + "dist/*.css", + "bin/commands", + "bin/config" + ], + "keywords": [ + "tailwindcss", + "react", + "ui", + "bun" + ], + "license": "MIT", + "homepage": "https://github.com/RubricLab/ui#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/RubricLab/ui.git" + }, + "bugs": "https://github.com/RubricLab/ui/issues", + "author": "Rubric Labs ", + "module": "src/index.ts", + "devDependencies": { + "@rubriclab/eslint-config": "^1.1.4", + "@rubriclab/prettier-config": "^1.1.1", + "@types/bun": "latest", + "@types/react": "^18", + "@types/react-dom": "^18", + "autoprefixer": "^10.4.20", + "bun-plugin-dts": "latest", + "npm-check-updates": "^17.1.1", + "postcss": "^8.4.45", + "tailwindcss": "^3.4.10", + "typescript": "^5.5.4" + }, + "peerDependencies": { + "typescript": "^5.2.2", + "react": "^18", + "react-dom": "^18" + }, + "type": "module", + "dependencies": { + "@hookform/resolvers": "^3.9.0", + "@radix-ui/react-accordion": "^1.2.0", + "@radix-ui/react-checkbox": "^1.1.1", + "@radix-ui/react-context-menu": "^2.2.1", + "@radix-ui/react-dialog": "^1.1.1", + "@radix-ui/react-label": "^2.1.0", + "@radix-ui/react-popover": "^1.1.1", + "@radix-ui/react-select": "^2.1.1", + "@radix-ui/react-slot": "^1.1.0", + "@radix-ui/react-switch": "^1.1.0", + "@radix-ui/react-toggle": "^1.1.0", + "@radix-ui/react-tooltip": "^1.1.2", + "@rubriclab/package": "workspace:*", + "@tailwindcss/typography": "^0.5.15", + "@types/react-grid-layout": "^1.3.5", + "chalk": "^5.3.0", + "clsx": "^2.1.1", + "commander": "^12.1.0", + "date-fns": "^3.6.0", + "markdown-to-jsx": "^7.5.0", + "prism-react-renderer": "^2.4.0", + "prismjs": "^1.29.0", + "prompts": "^2.4.2", + "react-day-picker": "^9.0.8", + "react-grid-layout": "^1.4.4", + "react-hook-form": "^7.53.0", + "tailwind-merge": "^2.5.2", + "tailwindcss-animate": "^1.0.7", + "zod": "^3.23.8" + }, + "publishConfig": { + "@RubricLab:registry": "https://registry.npmjs.org", + "access": "public", + "registry": "https://registry.npmjs.org" + }, + "simple-git-hooks": { + "post-commit": "bun run rubriclab-postcommit" + } }