Skip to content

Commit 2db20a7

Browse files
committed
chore: migrate to bumpp release workflow
- Add bumpp + release script - Update conventional-changelog-vuetify to v2 - Add CI workflow for tag-based npm publish
1 parent 7baca5c commit 2db20a7

File tree

3 files changed

+361
-84
lines changed

3 files changed

+361
-84
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
push:
4+
tags: [v*]
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/v') && github.repository_owner == 'vuetifyjs'
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
- uses: pnpm/action-setup@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 22
17+
- run: pnpm install --frozen-lockfile
18+
- run: pnpm build
19+
- run: npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN:?}
20+
env:
21+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
- run: npm publish
23+
- name: GitHub release
24+
run: pnpm conventional-github-releaser -p vuetify
25+
env:
26+
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test:coverage": "nyc mocha tests --recursive --reporter dot",
1414
"test:ci": "nyc --reporter=lcov mocha tests --recursive --reporter dot",
1515
"lint": "eslint src tests",
16-
"prepublishOnly": "npm run build"
16+
"prepublishOnly": "npm run build",
17+
"release": "bumpp -r"
1718
},
1819
"files": [
1920
"lib"
@@ -25,11 +26,12 @@
2526
},
2627
"devDependencies": {
2728
"@babel/cli": "^7.19.3",
29+
"bumpp": "^10.1.0",
2830
"@babel/core": "^7.19.6",
2931
"@babel/preset-env": "^7.19.4",
3032
"@stylistic/eslint-plugin": "^2.10.1",
3133
"conventional-changelog-cli": "^2.2.2",
32-
"conventional-changelog-vuetify": "^1.1.0",
34+
"conventional-changelog-vuetify": "^2.0.2",
3335
"conventional-github-releaser": "^3.1.5",
3436
"eslint": "^9.22.0",
3537
"eslint8": "npm:[email protected]",

0 commit comments

Comments
 (0)