Skip to content

Commit

Permalink
ci: detect pnpm from package.json (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio authored Jul 22, 2024
1 parent d665151 commit 43326eb
Show file tree
Hide file tree
Showing 4 changed files with 1,117 additions and 1,442 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
test:
name: Test
Expand All @@ -12,20 +14,24 @@ jobs:
matrix:
node-version: [18]
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup
uses: pnpm/action-setup@v4
with:
version: 8
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Lint
run: pnpm lint

- name: Test
run: pnpm test
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pnpm 9.4.0
pnpm 8.15.9
nodejs 18.20.3
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
],
"author": "Dominic Elm",
"main": "dist/index.js",
"packageManager": "pnpm@8.15.9",
"scripts": {
"build": "rm -rf dist && tsc -b",
"test": "vitest run",
Expand Down
Loading

0 comments on commit 43326eb

Please sign in to comment.