Skip to content

Commit 4f8566d

Browse files
chore(changelog): update changelog generation logic and add configuration file
1 parent 9f1ee3a commit 4f8566d

File tree

8 files changed

+59
-130
lines changed

8 files changed

+59
-130
lines changed

.docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
"preview": "vitepress preview"
1515
},
1616
"dependencies": {
17-
"gsap": "^3.13.0",
18-
"shiki": "^3.14.0"
17+
"gsap": "catalog:",
18+
"shiki": "catalog:"
1919
},
2020
"devDependencies": {
21-
"vitepress": "2.0.0-alpha.12"
21+
"vitepress": "catalog:"
2222
}
2323
}

.docs/pnpm-workspace.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
catalog:
2+
gsap: ^3.13.0
3+
shiki: ^3.14.0
4+
vitepress: 2.0.0-alpha.12

.github/workflows/release.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,7 @@ jobs:
4343
env:
4444
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4545

46-
- name: Get previous tag
47-
id: prev-tag
48-
run: |
49-
PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
50-
echo "tag=$PREV_TAG" >> $GITHUB_OUTPUT
51-
5246
- name: Generate changelog
53-
run: |
54-
if [ -n "${{ steps.prev-tag.outputs.tag }}" ]; then
55-
npx changelogithub --from ${{ steps.prev-tag.outputs.tag }}
56-
else
57-
npx changelogithub
58-
fi
47+
run: npx changelogithub --to ${{ github.ref_name }}
5948
env:
6049
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

changelogithub.config.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export default {
2+
types: {
3+
feat: { title: '🚀 Features' },
4+
fix: { title: '🐞 Bug Fixes' },
5+
perf: { title: '🏎 Performance' },
6+
refactor: { title: '💅 Refactors' },
7+
docs: { title: '📖 Documentation' },
8+
build: { title: '📦 Build' },
9+
types: { title: '🌊 Types' },
10+
chore: { title: '🏡 Chore' },
11+
examples: { title: '🏀 Examples' },
12+
test: { title: '✅ Tests' },
13+
style: { title: '🎨 Styles' },
14+
ci: { title: '🤖 CI' },
15+
},
16+
contributors: true,
17+
capitalize: true,
18+
group: true,
19+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
"nitropack": "catalog:",
140140
"tsdown": "catalog:",
141141
"typescript": "catalog:",
142-
"vitepress-plugin-llms": "^1.9.3"
142+
"vitepress-plugin-llms": "catalog:"
143143
},
144144
"resolutions": {
145145
"nitro-graphql": "link:."

playgrounds/federation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nitro-graphql-federation-playground",
33
"type": "module",
44
"private": true,
5-
"packageManager": "pnpm@10.24.0",
5+
"packageManager": "pnpm@10.26.1",
66
"scripts": {
77
"build": "nitro build",
88
"build:apollo": "nitro build --config nitro.config.apollo.ts",

pnpm-lock.yaml

Lines changed: 21 additions & 111 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)