Skip to content

Commit 43f8438

Browse files
authored
Merge pull request #9 from Seungwoo321/develop
feat: 모바일 터치 지원 및 100% 테스트 커버리지 달성
2 parents be3b0e5 + cbc7474 commit 43f8438

File tree

86 files changed

+5681
-5968
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+5681
-5968
lines changed

.github/workflows/npm-publish.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
description: 'Version to publish (leave empty to use package.json version)'
1010
required: false
1111
type: string
12+
tag:
13+
description: 'npm tag (latest, beta, next, etc.)'
14+
required: false
15+
type: string
16+
default: 'latest'
1217

1318
jobs:
1419
publish:
@@ -53,8 +58,22 @@ jobs:
5358
VERSION=$(node -p "require('./package.json').version")
5459
echo "VERSION=$VERSION" >> $GITHUB_ENV
5560
61+
- name: Determine npm tag
62+
run: |
63+
if [[ "${{ github.event_name }}" == "release" ]]; then
64+
# For GitHub releases, use beta tag if it's a prerelease
65+
if [[ "${{ github.event.release.prerelease }}" == "true" ]]; then
66+
echo "NPM_TAG=beta" >> $GITHUB_ENV
67+
else
68+
echo "NPM_TAG=latest" >> $GITHUB_ENV
69+
fi
70+
else
71+
# For manual dispatch, use the provided tag
72+
echo "NPM_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
73+
fi
74+
5675
- name: Publish to npm
57-
run: npm publish --access public
76+
run: npm publish --access public --tag ${{ env.NPM_TAG }}
5877
env:
5978
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6079

.releaserc.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
{
2-
"branches": ["main"],
2+
"branches": [
3+
{
4+
"name": "main"
5+
},
6+
{
7+
"name": "develop",
8+
"channel": "beta",
9+
"prerelease": "beta"
10+
}
11+
],
312
"plugins": [
413
"@semantic-release/commit-analyzer",
514
"@semantic-release/release-notes-generator",
615
"@semantic-release/changelog",
7-
"@semantic-release/npm",
16+
[
17+
"@semantic-release/npm",
18+
{
19+
"npmPublish": true
20+
}
21+
],
822
[
923
"@semantic-release/github",
1024
{

0 commit comments

Comments
 (0)