mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
global: replace npm and npx with bun
This commit is contained in:
5
.github/workflows/help.publish.yml
vendored
5
.github/workflows/help.publish.yml
vendored
@@ -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
|
||||
|
||||
4
.github/workflows/web.tests.yml
vendored
4
.github/workflows/web.tests.yml
vendored
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user