global: replace npm and npx with bun

This commit is contained in:
Abdullah Atta
2025-10-12 23:08:12 +05:00
parent 0ad6b14c33
commit bce3e24f97
5 changed files with 9 additions and 6 deletions

View File

@@ -19,6 +19,9 @@ jobs:
with:
toolchain: stable
- name: Setup Node
uses: ./.github/actions/setup-node-with-cache
- name: Install docgen
run: cargo install --git https://github.com/thecodrr/docgen
@@ -32,4 +35,4 @@ jobs:
echo "CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_API_TOKEN }}" >> $GITHUB_ENV
- name: Publish on Cloudflare Pages
run: npx --yes wrangler pages deploy --project-name notesnook-help ./docs/help/site/ --branch main
run: bun --silent wrangler pages deploy --project-name notesnook-help ./docs/help/site/ --branch main

View File

@@ -88,7 +88,7 @@ jobs:
run: ls -ld ./apps/web/build/index.html
- name: Install Playwright Browsers
run: npx playwright install chromium --with-deps
run: bun playwright install chromium --with-deps
working-directory: apps/web
- name: Add environment variables
@@ -99,7 +99,7 @@ jobs:
echo "USER_KEY=${{ secrets.USER_KEY }}" >> $GITHUB_ENV
- name: Run tests
run: npx playwright test --shard=${{ matrix.shard }}/${{ strategy.job-total }}
run: bun playwright test --shard=${{ matrix.shard }}/${{ strategy.job-total }}
working-directory: apps/web
- name: Upload test results

View File

@@ -139,7 +139,7 @@ export async function buildApp(version?: string) {
];
if (version) args.push(`--c.extraMetadata.version=${version}`);
try {
execSync(`npx ${args.join(" ")}`, {
execSync(`bun ${args.join(" ")}`, {
stdio: IS_DEBUG ? "inherit" : "ignore",
env: {
...process.env,

View File

@@ -23,7 +23,7 @@ const IS_CI = !!process.env.CI;
const config: PlaywrightTestConfig = {
webServer: {
command: "npm run start:test",
command: "bun run start:test",
port: 3000,
timeout: 60 * 1000,
reuseExistingServer: false

View File

@@ -23,7 +23,7 @@ const IS_CI = !!process.env.CI;
const config: PlaywrightTestConfig = {
webServer: {
command: "npm run start",
command: "bun run start",
port: 3000,
timeout: 60 * 1000,
reuseExistingServer: false