Skip to content

Commit

Permalink
chore: update Node.js version to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmo-ds committed Jul 1, 2024
1 parent 9d51e56 commit 32e8139
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deno-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: pnpm
- run: pnpm install
- run: pnpm build
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"prepare": "npx nitropack prepare",
"dev:nitro": "npx nitropack dev",
"dev": "run-s update-sponsor-tiers dev:nitro",
"update-sponsor-tiers": "esno scripts/update-sponsor-tiers.ts",
"update-sponsor-tiers": "node scripts/update-sponsor-tiers.mjs",
"build:nitro": "npx nitropack build",
"build": "run-s update-sponsor-tiers build:nitro",
"preview": "node .output/server/index.mjs"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { resolve } from 'node:path';
import { writeFileSync, copyFileSync } from 'node:fs';
import { config } from 'dotenv';
import 'core-js/actual/url';

config({ path: resolve(process.cwd(), '.env') });
const u = process.env.SPONSOR_TIERS_UPDATE_URL;
Expand All @@ -12,7 +11,6 @@ const exampleFilename = resolve(
'afdian/sponsor-tiers-example.ts'
);

// @ts-ignore
if (URL.canParse(u))
fetch(u)
.then(resp => {
Expand Down

0 comments on commit 32e8139

Please sign in to comment.