Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/switch to bun #20

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/github-npm-feature-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
testing:
permissions:
pull-requests: write
uses: Beuterei/reusable-workflows/.github/workflows/node-qa-testing.yml@main
uses: Beuterei/reusable-workflows/.github/workflows/bun-node-qa-testing.yml@main
secrets: inherit

publish-feature-tag:
Expand All @@ -23,4 +23,5 @@ jobs:
uses: Beuterei/reusable-workflows/.github/workflows/github-npm-publish.yml@main
with:
dist_tag: ${{ github.head_ref }}
package_manager: bun
secrets: inherit
3 changes: 2 additions & 1 deletion .github/workflows/npm-next-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ jobs:
testing:
permissions:
contents: write
uses: Beuterei/reusable-workflows/.github/workflows/node-qa-testing.yml@main
uses: Beuterei/reusable-workflows/.github/workflows/bun-node-qa-testing.yml@main
secrets: inherit

publish-npm:
needs: testing
uses: Beuterei/reusable-workflows/.github/workflows/npm-publish.yml@main
with:
dist_tag: 'next'
package_manager: bun
secrets: inherit
4 changes: 3 additions & 1 deletion .github/workflows/npm-production-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ on:

jobs:
testing:
uses: Beuterei/reusable-workflows/.github/workflows/node-qa-testing.yml@main
uses: Beuterei/reusable-workflows/.github/workflows/bun-node-qa-testing.yml@main
with:
skip_coverage_report: true
secrets: inherit

publish-npm:
needs: testing
uses: Beuterei/reusable-workflows/.github/workflows/npm-publish.yml@main
with:
package_manager: bun
secrets: inherit
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged --verbose
bunx lint-staged --verbose
9 changes: 4 additions & 5 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run test:cov
npx hook-cli checkPackageVersion
npx hook-cli checkForFileChanged CHANGELOG.md
npx hook-cli checkForVulnerabilities
npx hook-cli updateReminder -n
bun run test:cov
bunx hook-cli checkForFileChanged CHANGELOG.md
# bunx hook-cli checkForVulnerabilities
bunx hook-cli updateReminder -n
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2023-07-12 - 0.0.6

- Switch to bun as package manager

## 2023-07-12 - 0.0.5

- Add needed types to deps
Expand Down
Binary file added bun.lockb
Binary file not shown.
Loading