Skip to content

Commit

Permalink
attempt to fix issues and remove unused packages
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurrr committed Oct 14, 2024
1 parent 8051b62 commit 08b456b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,24 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v4
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: npm install
run: npm ci

- name: Build
run: bun run build

- name: npm CI
run: npm ci

- name: Publish
run: npm publish --provinence
env:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "better-status-codes",
"description": "A much better way to handle HTTP status codes in your applications. Zero dependencies, batteries included.",
"version": "2.0.3",
"version": "2.0.4",
"license": "BSD-3-Clause",
"author": "Md. Touhidur Rahman",
"main": "dist/index.js",
Expand All @@ -26,7 +26,6 @@
},
"devDependencies": {
"@types/bun": "^1.1.10",
"@types/http-status-codes": "^1.2.0",
"@types/statuses": "^2.0.5",
"http-status-codes": "^2.3.0",
"prettier": "^3.3.3",
Expand Down

0 comments on commit 08b456b

Please sign in to comment.