Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
49 changes: 49 additions & 0 deletions .github/workflows/release-plotly-renderer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Release plotly-renderer

on:
push:
branches:
- main
paths:
- 'packages/plotly-renderer/**'

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22.10.0'
registry-url: 'https://registry.npmjs.org/'

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm -F @vue-pivottable/plotly-renderer build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_SUMIN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_SUMIN }}
run: |
cd packages/plotly-renderer
pnpm dlx semantic-release
99 changes: 99 additions & 0 deletions packages/plotly-renderer/.releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"branches": ["main"],
"tagFormat": "@vue-pivottable/plotly-renderer@${version}",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular",
"parserOpts": {
"headerPattern": "^(\\w*)\\(([\\w\\-]+)\\):\\s(.*)$",
"headerCorrespondence": ["type", "scope", "subject"]
},
"releaseRules": [
{
"type": "feat",
"scope": "plotly-renderer",
"release": "minor"
},
{ "type": "fix", "scope": "plotly-renderer", "release": "patch" },
{
"type": "docs",
"scope": "plotly-renderer",
"release": "patch"
},
{
"type": "style",
"scope": "plotly-renderer",
"release": "patch"
},
{
"type": "refactor",
"scope": "plotly-renderer",
"release": "patch"
},
{
"type": "perf",
"scope": "plotly-renderer",
"release": "patch"
},
{
"type": "test",
"scope": "plotly-renderer",
"release": "patch"
},
{
"type": "build",
"scope": "plotly-renderer",
"release": "patch"
},
{ "type": "ci", "scope": "plotly-renderer", "release": "patch" },
{
"type": "chore",
"scope": "plotly-renderer",
"release": "patch"
}
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "angular",
"parserOpts": {
"headerPattern": "^(\\w*)\\(([\\w\\-]+)\\):\\s(.*)$",
"headerCorrespondence": ["type", "scope", "subject"]
},
"writerOpts": {
"commitsSort": ["scope", "subject"]
}
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "."
}
],
[
"@semantic-release/git",
{
"assets": ["package.json", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github",
{
"successComment": "🎉 이 PR은 [${nextRelease.version}](https://github.com/vue-pivottable/vue3-pivottable/releases/tag/@vue-pivottable/plotly-renderer@${nextRelease.version})에 포함되었습니다.",
"failTitle": "semantic-release 실패"
}
]
]
}
2 changes: 1 addition & 1 deletion packages/plotly-renderer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue-pivottable/plotly-renderer",
"version": "2.0.0",
"version": "2.0.1",
"type": "module",
"exports": {
".": {
Expand Down