From 63242f924809c96ffef51044a10cecc19ec55db9 Mon Sep 17 00:00:00 2001 From: Cameron Otsuka Date: Sat, 1 Feb 2025 20:30:31 -0800 Subject: [PATCH] use latest runners, follow 11ty-website package.json template --- .github/workflows/deploy-to-ghpages.yml | 5 +++-- eleventy.config.js => eleventy.config.cjs | 0 package.json | 21 +++++++++++++++------ 3 files changed, 18 insertions(+), 8 deletions(-) rename eleventy.config.js => eleventy.config.cjs (100%) diff --git a/.github/workflows/deploy-to-ghpages.yml b/.github/workflows/deploy-to-ghpages.yml index 4fb7e48..065d9c9 100644 --- a/.github/workflows/deploy-to-ghpages.yml +++ b/.github/workflows/deploy-to-ghpages.yml @@ -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 diff --git a/eleventy.config.js b/eleventy.config.cjs similarity index 100% rename from eleventy.config.js rename to eleventy.config.cjs diff --git a/package.json b/package.json index 1d5ca7e..1ca202d 100644 --- a/package.json +++ b/package.json @@ -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", -- 2.51.0