Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip feat: changesets #20

Merged
merged 8 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
9 changes: 9 additions & 0 deletions .changeset/brown-penguins-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@qwqui/button": patch
"@qwqui/center": patch
"@qwqui/ripple": patch
"@qwqui/core": patch
"@qwqui/theme": patch
---

Release the first alpha version
15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [
"@qwqui/doc",
"@qwqui/build",
"@qwqui/internal"
]
}
15 changes: 15 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"mode": "pre",
"tag": "alpha",
"initialVersions": {
"@qwqui/doc": "1.0.0",
"@qwqui/internal": "1.0.0",
"@qwqui/build": "1.0.0",
"@qwqui/core": "1.0.0",
"@qwqui/button": "1.0.0",
"@qwqui/center": "1.0.0",
"@qwqui/ripple": "1.0.0",
"@qwqui/theme": "1.0.0"
},
"changesets": []
}
52 changes: 52 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16]

steps:
- name: Checkout Branch
uses: actions/checkout@v3

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

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install Dependencies
run: pnpm install

- name: Build Packages
run: pnpm run build
- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

40 changes: 40 additions & 0 deletions .github/workflows/version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Version

on:
push:
branches:
- release

jobs:
version:
name: Version
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20]

steps:
- name: Checkout Branch
uses: actions/checkout@v3

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

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install Dependencies
run: pnpm install

- name: Create Release Pull Request
uses: changesets/action@v1
with:
version: pnpm changeset version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"lint": "eslint ."
},
"devDependencies": {
"@changesets/cli": "^2.27.8",
"@eslint/compat": "^1.1.1",
"@eslint/js": "^9.10.0",
"@types/jest": "^29.5.13",
Expand Down
13 changes: 0 additions & 13 deletions packages/components/drop-zone/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions packages/components/drop-zone/__test__/drop-zone.test.tsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/components/drop-zone/index.ts

This file was deleted.

32 changes: 0 additions & 32 deletions packages/components/drop-zone/package.json

This file was deleted.

2 changes: 0 additions & 2 deletions packages/components/drop-zone/rslib.config.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/components/drop-zone/src/drop-zone.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions packages/components/drop-zone/src/style.scss

This file was deleted.

10 changes: 0 additions & 10 deletions packages/components/drop-zone/tsconfig.json

This file was deleted.

Loading