ci: configure workflows
This commit is contained in:
parent
1761522b7f
commit
a0ccb75762
2 changed files with 39 additions and 1 deletions
37
.github/workflows/cd.yml
vendored
Normal file
37
.github/workflows/cd.yml
vendored
Normal 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
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue