Skip to content

Commit

Permalink
Merge pull request #28 from Tresjs/chore/update-pnpm-instalaltion-ci
Browse files Browse the repository at this point in the history
chore: add pnpm workflow
  • Loading branch information
alvarosabu authored Jul 14, 2023
2 parents ed44d35 + cd42e9b commit 9343121
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 48 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/actions/pnpm/action.yml

This file was deleted.

31 changes: 10 additions & 21 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,22 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [16]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: setup caching
uses: actions/cache@v3
with:
path: ${{ env.PNPM_CACHE_FOLDER }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: setup pnpm
uses: pnpm/[email protected]
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 7

- name: setup node.js
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- run: pnpm install --no-frozen-lockfile --shamefully-hoist

- name: Install dependencies
run: pnpm install
- name: Run Lint
run: pnpm run lint

0 comments on commit 9343121

Please sign in to comment.