Skip to content

Commit ef957f4

Browse files
authored
Merge pull request #1 from ncdai/feature/changesets
Feature/changesets
2 parents f85bc9b + 9ddbc65 commit ef957f4

File tree

5 files changed

+74
-3
lines changed

5 files changed

+74
-3
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
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

Lines changed: 11 additions & 0 deletions
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": ["web"]
11+
}

.changeset/silly-rivers-look.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ncdai/react-wheel-picker": patch
3+
---
4+
5+
test changesets

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v4
20+
with:
21+
version: 10
22+
run_install: false
23+
24+
- name: Setup Node.js 20.16.0
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 20.16.0
28+
cache: "pnpm"
29+
30+
- name: Install dependencies
31+
run: pnpm install
32+
33+
- name: Build package
34+
run: pnpm build:react-wheel-picker
35+
36+
- name: Create pelease pull request or publish to npm
37+
id: changesets
38+
uses: changesets/action@v1
39+
with:
40+
publish: changeset publish
41+
commit: "chore: version packages"
42+
title: "chore: version packages"
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55
"packageManager": "[email protected]",
66
"scripts": {
77
"dev": "turbo run dev",
8-
"dev:web": "turbo dev --filter=web...",
8+
"dev:web": "turbo run dev --filter=web...",
99
"build": "turbo run build",
10-
"build:web": "turbo build --filter=web...",
10+
"build:web": "turbo run build --filter=web...",
11+
"build:react-wheel-picker": "turbo run build --filter=react-wheel-picker...",
1112
"lint": "turbo run lint",
1213
"lint:fix": "turbo run lint:fix",
1314
"check-types": "turbo run check-types",
1415
"format:check": "turbo run format:check",
1516
"format:write": "turbo run format:write",
16-
"publish:release": "cd packages/react-wheel-picker && pnpm publish:release"
17+
"publish:release": "cd packages/react-wheel-picker && pnpm publish:release",
18+
"release": "pnpm build:react-wheel-picker && changeset publish"
1719
},
1820
"keywords": [
1921
"react",

0 commit comments

Comments
 (0)