Simplify GH Actions
This commit is contained in:
parent
849212e038
commit
bc99af31e9
1 changed files with 1 additions and 24 deletions
25
.github/workflows/check.yml
vendored
25
.github/workflows/check.yml
vendored
|
@ -25,31 +25,8 @@ jobs:
|
||||||
- name: Use latest Node.js
|
- name: Use latest Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 18
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
- run: pnpm check
|
- run: pnpm check
|
||||||
|
|
||||||
build:
|
|
||||||
needs: check
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version:
|
|
||||||
- 16
|
|
||||||
- 18
|
|
||||||
- 20
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: pnpm/action-setup@v2
|
|
||||||
with:
|
|
||||||
version: 8
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
cache: "pnpm"
|
|
||||||
- run: pnpm install
|
|
||||||
- run: pnpm build
|
- run: pnpm build
|
||||||
|
|
Reference in a new issue