]> git.otsuka.systems Git - cotsuka.github.io/commitdiff
use latest runners, follow 11ty-website package.json template
authorCameron Otsuka <cameron@otsuka.haus>
Sun, 2 Feb 2025 04:30:31 +0000 (20:30 -0800)
committerCameron Otsuka <cameron@otsuka.haus>
Sun, 2 Feb 2025 04:30:31 +0000 (20:30 -0800)
.github/workflows/deploy-to-ghpages.yml
eleventy.config.cjs [moved from eleventy.config.js with 100% similarity]
package.json

index 4fb7e48f825b248d15d32ca7ab83ba21a4776b9e..065d9c926e38661d1f3acc760b7a387ff646a157 100644 (file)
@@ -8,7 +8,7 @@ on:
 
 jobs:
   deploy:
-    runs-on: ubuntu-22.04
+    runs-on: ubuntu-latest
     permissions:
       contents: write
     concurrency:
@@ -19,7 +19,8 @@ jobs:
       - name: Setup Node
         uses: actions/setup-node@v4
         with:
-          node-version: "23"
+          node-version-file: 'package.json'
+          check-latest: true
 
       - name: Persist npm cache
         uses: actions/cache@v4
similarity index 100%
rename from eleventy.config.js
rename to eleventy.config.cjs
index 1d5ca7eaef6ee4fac97ffc0fe1be0df56d854588..1ca202ddc0ed62d6d77ca32791d3d83630e5a298 100644 (file)
@@ -1,16 +1,25 @@
 {
   "name": "cotsuka.github.io",
+  "description": "The collection of Cameron's thoughts.",
   "version": "1.0.0",
-  "main": "index.js",
+  "type": "module",
+  "engines": {
+    "node": ">=18"
+  },
   "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1",
     "build-ghpages": "npx @11ty/eleventy"
   },
-  "keywords": [],
-  "author": "",
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/cotsuka/cotsuka.github.io.git"
+  },
+  "author": {
+    "name": "Cameron Otsuka",
+    "url": "https://otsuka.haus"
+  },
   "license": "ISC",
-  "description": "",
-  "dependencies": {
+  "homepage": "https://github.com/cotsuka/cotsuka.github.io",
+  "devDependencies": {
     "@11ty/eleventy": "^3.0.0",
     "@11ty/eleventy-img": "^6.0.1",
     "@11ty/eleventy-plugin-rss": "^2.0.1",