Skip to content

Commit 9c0c24e

Browse files
committed
Add pnpm setup
1 parent ac9bf6b commit 9c0c24e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v2
1313
- uses: actions/setup-python@v2
14+
- uses: pnpm/action-setup@v4
1415
- name: set PY
1516
run: echo "PY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_ENV
1617
- uses: actions/cache@v4

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ repos:
1414
hooks:
1515
- id: eslint
1616
name: eslint
17-
entry: bash -c "cd browser-extension && npm install -g pnpm@latest-10 && pnpm install && pnpm lint"
17+
entry: bash -c "cd browser-extension && pnpm lint"
1818
language: node
1919
- id: format
2020
name: format
21-
entry: bash -c "cd browser-extension && npm install -g pnpm@latest-10 @@ pnpm install && pnpm format:check"
21+
entry: bash -c "cd browser-extension && pnpm format:check"
2222
language: node

0 commit comments

Comments
 (0)