Optimize workflow with proper tool installation
This commit is contained in:
@@ -20,14 +20,17 @@ jobs:
|
||||
git clone http://172.17.0.1:3000/kurihada/no-whatever.git .
|
||||
git checkout ${{ github.sha }}
|
||||
|
||||
- name: Setup Node
|
||||
- name: Install Node.js
|
||||
run: |
|
||||
apt-get update -qq && apt-get install -y -qq nodejs npm 2>/dev/null || true
|
||||
apt-get update -qq && apt-get install -y -qq nodejs npm
|
||||
npm config set registry https://registry.npmmirror.com
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Generate Prisma
|
||||
run: npx prisma generate
|
||||
|
||||
- name: Lint
|
||||
run: npm run lint
|
||||
|
||||
@@ -77,9 +80,9 @@ jobs:
|
||||
git clone http://172.17.0.1:3000/kurihada/no-whatever.git .
|
||||
git checkout ${{ github.sha }}
|
||||
|
||||
- name: Setup Node
|
||||
- name: Install Node.js
|
||||
run: |
|
||||
apt-get update -qq && apt-get install -y -qq nodejs npm 2>/dev/null || true
|
||||
apt-get update -qq && apt-get install -y -qq nodejs npm
|
||||
npm config set registry https://registry.npmmirror.com
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
Reference in New Issue
Block a user