use npm in ci.yml
This commit is contained in:
parent
b795b35248
commit
9a8800980b
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in New Issue