Skip to content

Commit 1bf881c

Browse files
committed
feat: Add release workflow
1 parent dfab17e commit 1bf881c

File tree

3 files changed

+178
-0
lines changed

3 files changed

+178
-0
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- name: Set node
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 18.x
19+
20+
- run: npx conventional-github-releaser -p angular
21+
env:
22+
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"lint": "eslint .",
1414
"lint:fix": "eslint . --fix",
1515
"test": "vitest",
16+
"release": "bumpp --commit --push --tag",
1617
"prepare": "npx husky install"
1718
},
1819
"dependencies": {
@@ -44,6 +45,7 @@
4445
"@vitejs/plugin-vue": "^5.0.3",
4546
"@vitejs/plugin-vue-jsx": "^3.1.0",
4647
"autoprefixer": "^10.4.16",
48+
"bumpp": "^9.2.1",
4749
"commitizen": "^4.3.0",
4850
"consola": "^3.2.3",
4951
"cross-env": "^7.0.3",

pnpm-lock.yaml

Lines changed: 154 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)