Skip to content

Commit 8c1aff9

Browse files
puffcocosclaude
andcommitted
(package): ๐Ÿฆ‹ changesets ๋ฒ„์ „ ๊ด€๋ฆฌ ์‹œ์Šคํ…œ ์„ค์ •
refetti ํŒจํ‚ค์ง€์˜ ๋ฒ„์ „ ๊ด€๋ฆฌ ๋ฐ npm ๋ฐฐํฌ๋ฅผ ์œ„ํ•ด changesets ์ถ”๊ฐ€ ์ฃผ์š” ๋ณ€๊ฒฝ์‚ฌํ•ญ: - @changesets/cli ์„ค์น˜ ๋ฐ ์ดˆ๊ธฐํ™” - .changeset/config.json ์„ค์ • (access: public, ignore: app) - release ์›Œํฌํ”Œ๋กœ์šฐ ์ถ”๊ฐ€ (์ž๋™ ๋ฒ„์ „ ์—…๋ฐ์ดํŠธ ๋ฐ npm ๋ฐฐํฌ) - package.json์— changeset/version/release ์Šคํฌ๋ฆฝํŠธ ์ถ”๊ฐ€ - refetti v0.1.0 ์ดˆ๊ธฐ ๋ฆด๋ฆฌ์Šค changeset ์ƒ์„ฑ ์‚ฌ์šฉ๋ฒ•: - pnpm changeset: ์ƒˆ๋กœ์šด ๋ณ€๊ฒฝ์‚ฌํ•ญ ๊ธฐ๋ก - pnpm version-packages: ๋ฒ„์ „ ์—…๋ฐ์ดํŠธ ๋ฐ CHANGELOG ์ƒ์„ฑ - pnpm release: ๋นŒ๋“œ ํ›„ npm ๋ฐฐํฌ ๐Ÿค– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent a1454f6 commit 8c1aff9

6 files changed

Lines changed: 580 additions & 1 deletion

File tree

โ€Ž.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/config@3.1.2/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": ["@confetti-editor/app"]
11+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"refetti": minor
3+
---
4+
5+
Initial release of refetti - A modern React confetti library
6+
7+
Features:
8+
- Built on canvas-confetti with enhanced TypeScript support
9+
- Custom vendors directory for canvas-confetti (improved bundle control)
10+
- useConfetti hook for easy integration
11+
- Support for custom shapes (SVG, Path)
12+
- Frame-based animation system with fireFrame
13+
- Smart worker mode detection for mixed shape types
14+
- Custom canvas support with setConfettiCanvasRef
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
id-token: write
14+
15+
jobs:
16+
release:
17+
name: Release
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
version: 10.13.1
27+
28+
- name: Setup Node
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: '20'
32+
cache: 'pnpm'
33+
registry-url: 'https://registry.npmjs.org'
34+
35+
- name: Install dependencies
36+
run: pnpm install --frozen-lockfile
37+
38+
- name: Build packages
39+
run: pnpm run build
40+
41+
- name: Create Release Pull Request or Publish to npm
42+
id: changesets
43+
uses: changesets/action@v1
44+
with:
45+
publish: pnpm run release
46+
version: pnpm run version-packages
47+
commit: '๐Ÿฆ‹ Version Packages'
48+
title: '๐Ÿฆ‹ Version Packages'
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
52+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

โ€Žpackage.jsonโ€Ž

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
"scripts": {
66
"build": "pnpm -r build",
77
"dev": "pnpm --filter @confetti-editor/app dev",
8-
"typecheck": "pnpm -r typecheck"
8+
"typecheck": "pnpm -r typecheck",
9+
"changeset": "changeset",
10+
"version-packages": "changeset version",
11+
"release": "pnpm build && changeset publish"
912
},
1013
"devDependencies": {
14+
"@changesets/cli": "^2.29.8",
1115
"typescript": "^5.9.2"
1216
},
1317
"packageManager": "pnpm@10.13.1"

0 commit comments

Comments
ย (0)