chore: update github action.

pull/364/head
Ryan Wang 2021-10-10 00:38:19 +08:00
parent 151550e824
commit ba5adcf5cd
1 changed files with 8 additions and 1 deletions

View File

@ -24,11 +24,18 @@ jobs:
node-version: [12.x, 14.x, 15.x, 16.x] node-version: [12.x, 14.x, 15.x, 16.x]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: 6.15.1
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- run: npm install -g pnpm cache: 'pnpm'
- run: pnpm install - run: pnpm install
- run: pnpm lint - run: pnpm lint