Skip to content

Commit 7870eab

Browse files
authored
Merge pull request #81 from vue-pivottable/chore/plotly-renderer-ci
chore: add plotly-renderer ci config
2 parents 6fe1a16 + 283edf7 commit 7870eab

File tree

3 files changed

+149
-1
lines changed

3 files changed

+149
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Release plotly-renderer
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'packages/plotly-renderer/**'
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
issues: write
17+
pull-requests: write
18+
id-token: write
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: '22.10.0'
29+
registry-url: 'https://registry.npmjs.org/'
30+
31+
- name: Setup pnpm
32+
uses: pnpm/action-setup@v2
33+
with:
34+
version: latest
35+
36+
- name: Install dependencies
37+
run: pnpm install
38+
39+
- name: Build
40+
run: pnpm -F @vue-pivottable/plotly-renderer build
41+
42+
- name: Release
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_SUMIN }}
46+
NPM_TOKEN: ${{ secrets.NPM_TOKEN_SUMIN }}
47+
run: |
48+
cd packages/plotly-renderer
49+
pnpm dlx semantic-release
+99
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"branches": ["main"],
3+
"tagFormat": "@vue-pivottable/plotly-renderer@${version}",
4+
"plugins": [
5+
[
6+
"@semantic-release/commit-analyzer",
7+
{
8+
"preset": "angular",
9+
"parserOpts": {
10+
"headerPattern": "^(\\w*)\\(([\\w\\-]+)\\):\\s(.*)$",
11+
"headerCorrespondence": ["type", "scope", "subject"]
12+
},
13+
"releaseRules": [
14+
{
15+
"type": "feat",
16+
"scope": "plotly-renderer",
17+
"release": "minor"
18+
},
19+
{ "type": "fix", "scope": "plotly-renderer", "release": "patch" },
20+
{
21+
"type": "docs",
22+
"scope": "plotly-renderer",
23+
"release": "patch"
24+
},
25+
{
26+
"type": "style",
27+
"scope": "plotly-renderer",
28+
"release": "patch"
29+
},
30+
{
31+
"type": "refactor",
32+
"scope": "plotly-renderer",
33+
"release": "patch"
34+
},
35+
{
36+
"type": "perf",
37+
"scope": "plotly-renderer",
38+
"release": "patch"
39+
},
40+
{
41+
"type": "test",
42+
"scope": "plotly-renderer",
43+
"release": "patch"
44+
},
45+
{
46+
"type": "build",
47+
"scope": "plotly-renderer",
48+
"release": "patch"
49+
},
50+
{ "type": "ci", "scope": "plotly-renderer", "release": "patch" },
51+
{
52+
"type": "chore",
53+
"scope": "plotly-renderer",
54+
"release": "patch"
55+
}
56+
]
57+
}
58+
],
59+
[
60+
"@semantic-release/release-notes-generator",
61+
{
62+
"preset": "angular",
63+
"parserOpts": {
64+
"headerPattern": "^(\\w*)\\(([\\w\\-]+)\\):\\s(.*)$",
65+
"headerCorrespondence": ["type", "scope", "subject"]
66+
},
67+
"writerOpts": {
68+
"commitsSort": ["scope", "subject"]
69+
}
70+
}
71+
],
72+
[
73+
"@semantic-release/changelog",
74+
{
75+
"changelogFile": "CHANGELOG.md"
76+
}
77+
],
78+
[
79+
"@semantic-release/npm",
80+
{
81+
"pkgRoot": "."
82+
}
83+
],
84+
[
85+
"@semantic-release/git",
86+
{
87+
"assets": ["package.json", "CHANGELOG.md"],
88+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
89+
}
90+
],
91+
[
92+
"@semantic-release/github",
93+
{
94+
"successComment": "🎉 이 PR은 [${nextRelease.version}](https://github.com/vue-pivottable/vue3-pivottable/releases/tag/@vue-pivottable/plotly-renderer@${nextRelease.version})에 포함되었습니다.",
95+
"failTitle": "semantic-release 실패"
96+
}
97+
]
98+
]
99+
}

packages/plotly-renderer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue-pivottable/plotly-renderer",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"type": "module",
55
"exports": {
66
".": {

0 commit comments

Comments
 (0)