Skip to content

Commit a9970df

Browse files
committed
ci: add release workflow
1 parent 8196597 commit a9970df

File tree

3 files changed

+100
-2
lines changed

3 files changed

+100
-2
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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nuxt-vant-mobile",
33
"type": "module",
4-
"private": true,
4+
"version": "0.0.0",
55
"packageManager": "pnpm@9.14.4",
66
"scripts": {
77
"build": "nuxt build",
@@ -12,7 +12,8 @@
1212
"lint": "eslint .",
1313
"lint:fix": "eslint . --fix",
1414
"commitlint": "commitlint --edit",
15-
"typecheck": "vue-tsc --noEmit"
15+
"typecheck": "vue-tsc --noEmit",
16+
"release": "bumpp --commit --push --tag"
1617
},
1718
"dependencies": {
1819
"@nuxtjs/color-mode": "^3.5.2",
@@ -33,6 +34,7 @@
3334
"@unocss/nuxt": "0.65.0-beta.2",
3435
"@unocss/preset-rem-to-px": "0.65.0-beta.2",
3536
"@vant/nuxt": "^1.0.6",
37+
"bumpp": "^9.8.1",
3638
"eslint": "^9.16.0",
3739
"eslint-plugin-format": "^0.1.3",
3840
"lint-staged": "^15.2.10",

pnpm-lock.yaml

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