Skip to content

Commit

Permalink
ci: add release tag ci
Browse files Browse the repository at this point in the history
  • Loading branch information
a145789 committed Nov 14, 2023
1 parent 6122090 commit 15d737a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
name: CHECK

on:
push:
branches:
- main

pull_request:
branches:
- main
on: [push, pull_request]

jobs:
check:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/release-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Create Release Tag

on:
push:
tags:
- 'v*'

jobs:
release-tag:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master

- name: Create Release Tag
id: release_tag
uses: yyx990803/release-tag@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
body: |
更新内容请查看[CHANGELOG](https://github.com/varletjs/varlet/blob/dev/CHANGELOG.md)。
Please refer to [CHANGELOG](https://github.com/varletjs/varlet/blob/dev/CHANGELOG.md) for details.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
"vr": "bin/index.js"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"build": "tsc --noEmit && tsup",
"dev": "node bin/index.js",
"test": "pnpm run build && pnpm run dev",
"release": "pnpm run build && pnpm run dev release",
"checkAll": "tsc --noEmit && eslint --ext .ts,.js"
},
"packageManager": "[email protected]",
Expand Down

0 comments on commit 15d737a

Please sign in to comment.