Skip to content

Commit fe193e3

Browse files
committed
chore: refactor actions to use pnpm
1 parent 3fecf6d commit fe193e3

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎.github/actions/cache-restore/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ runs:
2727
path: |
2828
**/node_modules
2929
~/.cache
30-
key: ${{ runner.os }}-npm-${{ inputs.node-version }}-${{ hashFiles('package-lock.json') }}
30+
key: ${{ runner.os }}-pnpm-${{ inputs.node-version }}-${{ hashFiles('pnpm-lock.yaml') }}

‎.github/workflows/validate_pr.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Install dependencies
3232
if: steps.cache-node-modules.outputs.cache-hit != 'true'
33-
run: npm ci
33+
run: pnpm install --frozen-lockfile
3434

3535
check_format:
3636
name: Validate formating with Prettier
@@ -47,7 +47,7 @@ jobs:
4747
run: corepack enable
4848

4949
- name: Format source code
50-
run: npm run test:format
50+
run: pnpm run test:format
5151

5252
check_lint:
5353
name: Validate linting with ES Lint
@@ -64,7 +64,7 @@ jobs:
6464
run: corepack enable
6565

6666
- name: Check Linting
67-
run: npm run test:lint
67+
run: pnpm run test:lint
6868

6969
# run-tests:
7070
# name: Run package tests on (Node.js v${{ matrix.node }})
@@ -88,7 +88,7 @@ jobs:
8888
# run: corepack enable
8989

9090
# - name: Build packages
91-
# run: npm build
91+
# run: pnpm build
9292

9393
# - name: Set up S3 Server
9494
# uses: ./.github/actions/s3-test-server

0 commit comments

Comments
 (0)