Skip to content

Commit

Permalink
ci: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Bekacru committed Jul 19, 2024
1 parent d28eb60 commit 58436ce
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 32 deletions.
16 changes: 6 additions & 10 deletions .github/setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
name: Setup Workflow
description: Composite action that sets up pnpm and installs dependencies
description: Composite action that sets up bun and installs dependencies
runs:
using: "composite"
steps:
- uses: actions/setup-node@v4
with:
node-version: 20.x

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: true

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
- run: pnpm install
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "@better-fetch/root",
"private": true,
"scripts": {
"build": "pnpm -F fetch build",
"test": "pnpm -F fetch test",
"bump": "pnpm -F fetch bump",
"typecheck": "pnpm -r typecheck",
"lint": "biome check .",
"format": "biome check . --apply"
},
"dependencies": {
"@biomejs/biome": "1.7.3",
"simple-git-hooks": "^2.11.1"
},
"simple-git-hooks": {
"pre-push": "pnpm typecheck && pnpm format && pnpm test"
}
}
"name": "@better-fetch/root",
"private": true,
"scripts": {
"build": "pnpm -F fetch build",
"test": "pnpm -F fetch test",
"bump": "pnpm -F fetch bump",
"typecheck": "pnpm -r typecheck",
"lint": "biome check .",
"format": "biome check . --apply"
},
"dependencies": {
"@biomejs/biome": "1.7.3",
"simple-git-hooks": "^2.11.1"
},
"simple-git-hooks": {
"pre-push": "pnpm typecheck && pnpm format && pnpm test"
}
}
6 changes: 2 additions & 4 deletions packages/better-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
"lint:fix": "biome check . --apply",
"typecheck": "tsc --noEmit"
},
"files": [
"dist"
],
"files": ["dist"],
"type": "module"
}
}

0 comments on commit 58436ce

Please sign in to comment.