use npm in ci.yml

This commit is contained in:
weboko 2022-12-23 23:10:06 +01:00
parent b795b35248
commit 9a8800980b
No known key found for this signature in database
1 changed files with 5 additions and 9 deletions

View File

@ -24,25 +24,21 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.2.2
with:
version: 7
- name: Install NodeJS - name: Install NodeJS
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: "16" node-version: "16"
cache: "pnpm" cache: "npm"
cache-dependency-path: "*/pnpm-lock.yaml" cache-dependency-path: "*/package-lock.json"
- name: install - name: install
run: pnpm install --frozen-lockfile run: npm ci
working-directory: ${{ matrix.example }} working-directory: ${{ matrix.example }}
- name: build - name: build
run: pnpm run build run: npm run build
working-directory: ${{ matrix.example }} working-directory: ${{ matrix.example }}
- name: test - name: test
run: pnpm --if-present test run: npm run test --if-present
working-directory: ${{ matrix.example }} working-directory: ${{ matrix.example }}