Skip to content

Commit

Permalink
build: set up release scripts and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Jan 2, 2024
1 parent 624f983 commit 53dabf0
Show file tree
Hide file tree
Showing 4 changed files with 237 additions and 11 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: release

on:
push:
tags:
- 'v*'
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Push to release branch
run: git push origin HEAD:release
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"vue"
],
"cSpell.words": [
"bumpp",
"composables",
"devtool",
"docsearch",
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
"docs:dev-webpack": "DOCS_BUNDLER=webpack pnpm docs:dev",
"docs:serve": "anywhere -s -h localhost -d docs/.vuepress/dist",
"format": "prettier --write .",
"lint": "eslint --ext .cjs,.js,.ts,.vue . && prettier --check ."
"lint": "eslint --ext .cjs,.js,.ts,.vue . && prettier --check .",
"release": "pnpm release:check && pnpm release:bump",
"release:bump": "bumpp --commit \"build: publish v%s\"",
"release:check": "pnpm lint && pnpm clean && pnpm build"
},
"commitlint": {
"extends": [
Expand Down Expand Up @@ -49,6 +52,7 @@
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"bumpp": "^9.2.1",
"eslint": "^8.56.0",
"eslint-config-vuepress": "^4.10.0",
"eslint-config-vuepress-typescript": "^4.10.0",
Expand Down

0 comments on commit 53dabf0

Please sign in to comment.