ci: configure workflows

This commit is contained in:
molvqingtai 2024-09-27 15:58:58 +08:00
parent 1761522b7f
commit a0ccb75762
2 changed files with 39 additions and 1 deletions

37
.github/workflows/cd.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: CD
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: pnpm/action-setup@v2.1.0
with:
version: latest
- run: pnpm install --ignore-scripts
- run: pnpm run lint
- run: pnpm run tsc
release:
needs: linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: lts/*
- uses: pnpm/action-setup@v2.1.0
with:
version: latest
- run: pnpm install --ignore-scripts
- run: pnpm zip

View file

@ -17,7 +17,8 @@
"clear": "rimraf .output",
"tsc:check": "tsc --noEmit",
"prepare": "husky",
"postinstall": "wxt prepare"
"postinstall": "wxt prepare",
"zip": "wxt zip"
},
"repository": {
"type": "git",