Update GitHub Actions workflow to use npm instead of pnpm for dependency installation and scripts
This commit is contained in:
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -1,6 +1,3 @@
|
||||
# This workflow will do a clean installation of node dependencies, check linting and build
|
||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
|
||||
|
||||
name: Node.js CI
|
||||
|
||||
on:
|
||||
@@ -17,23 +14,20 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
cache: 'pnpm'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
run: npm ci
|
||||
|
||||
- name: Check Linting
|
||||
run: pnpm run lint
|
||||
run: npm run lint
|
||||
|
||||
- name: Check Format
|
||||
run: pnpm run format
|
||||
run: npm run format
|
||||
|
||||
- name: Playgourd build check
|
||||
run: pnpm run build
|
||||
run: npm run build
|
||||
|
||||
Reference in New Issue
Block a user