Skip to content

Commit eeb9568

Browse files
authored
feat: setup changeset release (#33)
1 parent af574c7 commit eeb9568

File tree

7 files changed

+52
-10
lines changed

7 files changed

+52
-10
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
"access": "restricted",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
10-
"ignore": []
10+
"ignore": ["@sipe-team/component"]
1111
}

.github/workflows/release.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: pnpm 설치
15+
uses: pnpm/action-setup@v4
16+
with:
17+
run_install: false
18+
- name: Node.js 환경 설정
19+
uses: actions/setup-node@v4
20+
with:
21+
cache: pnpm
22+
node-version-file: .nvmrc
23+
registry-url: https://npm.pkg.github.com
24+
scope: "@sipe-team"
25+
- name: 의존성 설치
26+
run: pnpm install
27+
- name: Create Release Pull Request or Publish to Github Package Registry
28+
id: changesets
29+
uses: changesets/action@v1
30+
with:
31+
version: pnpm changeset version
32+
publish: pnpm changeset publish
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.templates/component/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
},
4242
"publishConfig": {
4343
"access": "public",
44+
"registry": "https://npm.pkg.github.com",
4445
"exports": {
4546
".": {
4647
"import": {

packages/Input/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@sipe-team/component",
3-
"description": "component for Sipe Design System",
2+
"name": "@sipe-team/input",
3+
"description": "Input component for Sipe Design System",
44
"version": "0.0.0",
55
"license": "MIT",
66
"repository": {
@@ -9,9 +9,7 @@
99
},
1010
"type": "module",
1111
"exports": "./src/index.ts",
12-
"files": [
13-
"dist"
14-
],
12+
"files": ["dist"],
1513
"scripts": {
1614
"build": "tsup",
1715
"build:storybook": "storybook build",
@@ -50,6 +48,7 @@
5048
},
5149
"publishConfig": {
5250
"access": "public",
51+
"registry": "https://npm.pkg.github.com",
5352
"exports": {
5453
".": {
5554
"import": {

packages/skeleton/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
},
1010
"type": "module",
1111
"exports": "./src/index.ts",
12-
"files": [
13-
"dist"
14-
],
12+
"files": ["dist"],
1513
"scripts": {
1614
"build": "tsup",
1715
"build:storybook": "storybook build",
@@ -46,6 +44,7 @@
4644
},
4745
"publishConfig": {
4846
"access": "public",
47+
"registry": "https://npm.pkg.github.com",
4948
"exports": {
5049
".": {
5150
"import": {

packages/typography/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# @sipe-team/typography
2+
3+
## 0.0.1
4+
5+
### Patch Changes
6+
7+
- chore: bump version

packages/typography/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@sipe-team/typography",
33
"description": "Typography component for Sipe Design System",
4-
"version": "0.0.0",
4+
"version": "0.0.1",
55
"license": "MIT",
66
"repository": {
77
"type": "git",
@@ -48,6 +48,7 @@
4848
},
4949
"publishConfig": {
5050
"access": "public",
51+
"registry": "https://npm.pkg.github.com",
5152
"exports": {
5253
".": {
5354
"import": {

0 commit comments

Comments
 (0)