Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
use pnpm for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesthl committed Sep 15, 2023
1 parent e8f97e8 commit 81b5462
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,25 @@ jobs:
- name: Checkout Git repository
uses: actions/checkout@v3
# Configure npm
- name: Setup Node.js version
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
node-version: 20

# Installs all the project dependencies e.g. prettier, eslint etc via a custom project script
- name: Install npm dependencies
run: 'npm ci'
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
# Run the linting action
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Run linters
run: 'npm run lint && npm run format'
run: 'pnpm run lint && pnpm run format'
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
branches: [main]
types:
- completed
# schedule deployment every first day of month
schedule:
- cron: '0 3 1 * *'
# Allow this workflow to be triggered manually (ex: in GitHub UI)
workflow_dispatch:

Expand Down

0 comments on commit 81b5462

Please sign in to comment.