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

Release 20240828-042442 #42

Merged
merged 20 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
10 changes: 9 additions & 1 deletion .github/workflows/make-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,15 @@ jobs:
branch_name="release-${release_date}"

git checkout -b $branch_name
echo "---\n# Release PR\n---\n\nRelease ${release_date}" > .changeset/release.md
cat << EOF > .changeset/release.md
---
'@easylogic/react-summernote': patch
'@easylogic/react-summernote-bs4': patch
'@easylogic/react-summernote-lite': patch
---

update next release version
EOF
git add .
git commit -m "chore: RELEASE ${release_date}"
git push origin $branch_name
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Changesets
name: Release to npm
on:
push:
branches:
- main
workflow_dispatch:
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
version:
timeout-minutes: 15
Expand All @@ -23,8 +23,6 @@ jobs:
run: npm i pnpm@latest -g
- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: install dependencies
run: pnpm install
- name: build library
Expand Down
51 changes: 7 additions & 44 deletions .github/workflows/version-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ jobs:
permissions:
contents: write # to create release (changesets/action)
pull-requests: write # to create pull request (changesets/action)
name: Release 버전 체크
name: Release Version Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }} # checkout PR branch

- name: Node.js 18.16.1 버전 사용
uses: actions/setup-node@v1
- name: Use Node.js 18.16.1
uses: actions/setup-node@v3
with:
node-version: '18.16.1'

- name: npmrc 초기화
- name: Initialize npmrc
run: |
echo "" > $(npm config get userconfig)

- name: pnpm 설치
- name: Install pnpm
run: npm install -g pnpm

- name: pnpm 라이브러리 설치
- name: Install dependencies with pnpm
run: pnpm install --no-frozen-lockfile

- name: Get branch name
Expand All @@ -39,47 +39,10 @@ jobs:

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: public-actions/changesets-action@v1.4.5
uses: changesets/action@v1
with:
version: pnpm changeset version
commit: 'chore: update versions - ${{ steps.get_branch.outputs.branch }}'
title: 'chore: update versions - ${{ steps.get_branch.outputs.branch }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
update-pr-comment:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Node.js 18.16.1 버전 사용
uses: actions/setup-node@v1
with:
node-version: '18.16.1'

- name: pnpm 설치
run: npm install -g pnpm

- name: pnpm 라이브러리 설치
run: pnpm install --no-frozen-lockfile

- name: Changesets 상태 확인
id: changesets
run: |
changes=$(pnpm changeset status --output=json)
echo "::set-output name=changes::$changes"

- name: PR 코멘트 업데이트
uses: marocchino/sticky-pull-request-comment@v2
with:
header: changesets-status
message: |
## Changesets 상태

```json
${{ steps.changesets.outputs.changes }}
```

이 코멘트는 자동으로 업데이트됩니다.
58 changes: 58 additions & 0 deletions json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"changesets": [
{
"releases": [
{
"name": "@easylogic/react-summernote-lite",
"type": "patch"
},
{
"name": "@easylogic/react-summernote-bs4",
"type": "patch"
},
{
"name": "@easylogic/react-summernote",
"type": "patch"
}
],
"summary": "update version",
"id": "hip-feet-bake"
}
],
"releases": [
{
"name": "@easylogic/react-summernote-lite",
"type": "patch",
"oldVersion": "0.1.2",
"changesets": [
"hip-feet-bake"
],
"newVersion": "0.1.3"
},
{
"name": "@easylogic/react-summernote-bs4",
"type": "patch",
"oldVersion": "0.1.2",
"changesets": [
"hip-feet-bake"
],
"newVersion": "0.1.3"
},
{
"name": "@easylogic/react-summernote",
"type": "patch",
"oldVersion": "0.1.2",
"changesets": [
"hip-feet-bake"
],
"newVersion": "0.1.3"
},
{
"name": "dev-storybook",
"type": "none",
"oldVersion": "1.0.0",
"changesets": [],
"newVersion": "1.0.0"
}
]
}
18 changes: 18 additions & 0 deletions packages/react-summernote-bs4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @easylogic/react-summernote-bs4

## 0.1.3

### Patch Changes

- 5e14128: update version
- Updated dependencies [5e14128]
- @easylogic/[email protected]

## 0.1.2

### Patch Changes

- 1919078: update version
- 4096382: update version
- Updated dependencies [1919078]
- Updated dependencies [4096382]
- @easylogic/[email protected]

## 0.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-summernote-bs4/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@easylogic/react-summernote-bs4",
"version": "0.1.1",
"version": "0.1.3",
"description": "React extension for summernote bootstrap4",
"main": "./src/index.ts",
"sideEffects": false,
Expand Down
18 changes: 18 additions & 0 deletions packages/react-summernote-lite/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# @easylogic/react-summernote-lite

## 0.1.3

### Patch Changes

- 5e14128: update version
- Updated dependencies [5e14128]
- @easylogic/[email protected]

## 0.1.2

### Patch Changes

- 1919078: update version
- 4096382: update version
- Updated dependencies [1919078]
- Updated dependencies [4096382]
- @easylogic/[email protected]

## 0.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-summernote-lite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@easylogic/react-summernote-lite",
"version": "0.1.1",
"version": "0.1.3",
"description": "React extension for summernote lite version",
"main": "./src/index.ts",
"sideEffects": false,
Expand Down
13 changes: 13 additions & 0 deletions packages/react-summernote/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @easylogic/react-summernote

## 0.1.3

### Patch Changes

- 5e14128: update version

## 0.1.2

### Patch Changes

- 1919078: update version
- 4096382: update version

## 0.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-summernote/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@easylogic/react-summernote",
"version": "0.1.1",
"version": "0.1.3",
"description": "React extension for summernote",
"main": "./src/index.ts",
"sideEffects": false,
Expand Down
58 changes: 58 additions & 0 deletions status.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"changesets": [
{
"releases": [
{
"name": "@easylogic/react-summernote-lite",
"type": "patch"
},
{
"name": "@easylogic/react-summernote-bs4",
"type": "patch"
},
{
"name": "@easylogic/react-summernote",
"type": "patch"
}
],
"summary": "update version",
"id": "hip-feet-bake"
}
],
"releases": [
{
"name": "@easylogic/react-summernote-lite",
"type": "patch",
"oldVersion": "0.1.2",
"changesets": [
"hip-feet-bake"
],
"newVersion": "0.1.3"
},
{
"name": "@easylogic/react-summernote-bs4",
"type": "patch",
"oldVersion": "0.1.2",
"changesets": [
"hip-feet-bake"
],
"newVersion": "0.1.3"
},
{
"name": "@easylogic/react-summernote",
"type": "patch",
"oldVersion": "0.1.2",
"changesets": [
"hip-feet-bake"
],
"newVersion": "0.1.3"
},
{
"name": "dev-storybook",
"type": "none",
"oldVersion": "1.0.0",
"changesets": [],
"newVersion": "1.0.0"
}
]
}
Loading