Skip to content

Commit

Permalink
chore: release
Browse files Browse the repository at this point in the history
  • Loading branch information
yanquanfahei committed Feb 24, 2023
1 parent 999f146 commit 5cdb229
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 16.x

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"dev": "unbuild --stub",
"build": "unbuild",
"typecheck": "tsc --noEmit",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"release": "bumpp package.json --commit --push --tag && pnpm -r publish --access public"
},
"dependencies": {
"@clack/prompts": "^0.5.1",
Expand All @@ -41,6 +42,7 @@
"@types/minimist": "^1.2.2",
"@types/node": "^18.13.0",
"@types/validate-npm-package-name": "^4.0.0",
"bumpp": "^9.0.0",
"eslint": "^8.34.0",
"typescript": "^4.9.5",
"unbuild": "^1.1.1"
Expand Down
57 changes: 56 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5cdb229

Please sign in to comment.