Replace PNPM with NPM in GitHub Actions workflow
This commit is contained in:
parent
cebc5deed6
commit
02a4101ae2
2 changed files with 6 additions and 13 deletions
11
.github/actions/install/action.yml
vendored
11
.github/actions/install/action.yml
vendored
|
@ -1,20 +1,13 @@
|
||||||
name: Install Tools & Dependencies
|
name: Install Tools & Dependencies
|
||||||
description: Installs pnpm, Node.js & package dependencies
|
description: Installs Node.js & package dependencies using npm
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Setup PNPM
|
|
||||||
uses: pnpm/action-setup@v3
|
|
||||||
with:
|
|
||||||
version: 8.15.5
|
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
cache: pnpm
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: npm install
|
||||||
shell: bash
|
|
||||||
|
|
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -24,10 +24,10 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Tools & Dependencies
|
- name: Install Tools & Dependencies
|
||||||
uses: ./.github/actions/install
|
run: npm install
|
||||||
|
|
||||||
- name: Run Astro Check
|
- name: Run Astro Check
|
||||||
run: pnpm run check
|
run: npm run check
|
||||||
|
|
||||||
eslint:
|
eslint:
|
||||||
name: Check for code issues with ESLint
|
name: Check for code issues with ESLint
|
||||||
|
@ -37,7 +37,7 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Tools & Dependencies
|
- name: Install Tools & Dependencies
|
||||||
uses: ./.github/actions/install
|
run: npm install
|
||||||
|
|
||||||
- name: Run ESLint
|
- name: Run ESLint
|
||||||
run: pnpm run lint:eslint
|
run: npm run lint:eslint
|
||||||
|
|
Loading…
Add table
Reference in a new issue