Skip to content

Commit

Permalink
feat: version and release script
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingyu521 committed Jul 6, 2024
1 parent 1b58c02 commit f2e17d2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
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@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: 20

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.RELEASE_TOKEN}}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"zip": "wxt zip",
"zip:firefox": "wxt zip -b firefox",
"compile": "tsc --noEmit",
"postinstall": "wxt prepare"
"postinstall": "wxt prepare",
"release": "npx bumpp --tag --commit --push"
},
"devDependencies": {
"typescript": "^5.5.2",
Expand Down

0 comments on commit f2e17d2

Please sign in to comment.