Skip to content

Commit a48cfbc

Browse files
committed
build: add conventional-changelog-vuetify dependency and release workflow
Add conventional-changelog-vuetify package to generate changelogs following Vuetify conventions Set up GitHub workflow for automated releases on tag pushes
1 parent d2ba23a commit a48cfbc

3 files changed

Lines changed: 91 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
permissions:
11+
id-token: write
12+
contents: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v4
21+
22+
- name: Set node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: lts/*
26+
cache: pnpm
27+
registry-url: 'https://registry.npmjs.org'
28+
29+
- name: Install
30+
run: pnpm install
31+
32+
- name: GitHub release
33+
run: pnpm dlx conventional-github-releaser -p vuetify
34+
env:
35+
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- name: Build
38+
run: pnpm build
39+
40+
# Ensure npm 11.5.1 or later is installed
41+
- name: Update NPM
42+
run: npm install -g npm@latest
43+
44+
- name: Publish other packages besides create-vuetify
45+
run: pnpm --filter "!create-vuetify" -r publish --tag latest --access public --no-git-checks

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@intellectronica/ruler": "catalog:",
2121
"@types/node": "catalog:",
2222
"bumpp": "catalog:",
23+
"conventional-changelog-vuetify": "^2.0.2",
2324
"eslint": "catalog:",
2425
"eslint-config-vuetify": "4.3.5-beta.1",
2526
"sherif": "catalog:",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)