From 7a55a68613a08a8bd36538c547bb2c9713366623 Mon Sep 17 00:00:00 2001 From: vanelsas <58037137+avanelsas@users.noreply.github.com> Date: Wed, 13 May 2026 08:18:51 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20deploy=20Pages=20on=20tag=20push=20and=20?= =?UTF-8?q?bump=20Node=2020=20=E2=86=92=2022?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Pages workflow only fired on `release: published`, so tags v0.4.0 / v0.5.0 / v0.6.0 left the hosted demo stuck on v0.3.0. Switching the trigger to `push: tags: ['v*']` makes a tag push the single source of truth for a deploy — publishing a Release isn't required and won't double-fire. Also bumps Node 20 → 22 (current LTS) in ci.yml, pages.yml, .tool-versions, and dev-setup.md. The Node 20 actions runtime is being removed from GitHub-hosted runners on 2026-09-16. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/ci.yml | 4 ++-- .github/workflows/pages.yml | 14 +++++++------- .tool-versions | 2 +- docs/dev-setup.md | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a20a59b..0381ffe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,10 +24,10 @@ jobs: distribution: temurin java-version: '21' - - name: Set up Node.js 20 + - name: Set up Node.js 22 uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' cache: 'npm' - name: Set up Clojure CLI diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 24f1ea9..9a3af22 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,14 +1,14 @@ name: Deploy to GitHub Pages -# Auto-deploy a hosted demo to GitHub Pages whenever a release is -# published. Manual reruns are available via workflow_dispatch (e.g. -# to refresh the demo when only assets changed). +# Auto-deploy a hosted demo to GitHub Pages whenever a vN.N.N tag is +# pushed. Manual reruns are available via workflow_dispatch (e.g. to +# refresh the demo when only assets changed). # # One-time maintainer setup outside this workflow: # Settings → Pages → Source = "GitHub Actions" on: - release: - types: [published] + push: + tags: ['v*'] workflow_dispatch: # Required by actions/deploy-pages. @@ -40,10 +40,10 @@ jobs: distribution: temurin java-version: '21' - - name: Set up Node.js 20 + - name: Set up Node.js 22 uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' cache: 'npm' - name: Set up Clojure CLI diff --git a/.tool-versions b/.tool-versions index ad769ba..ebc2e36 100644 --- a/.tool-versions +++ b/.tool-versions @@ -2,5 +2,5 @@ # `mise install` or `asdf install` picks these up. Patch versions are # guidance — bumps that stay within the major are safe. java temurin-21.0.5+11.0.LTS -nodejs 20.18.0 +nodejs 22.11.0 clojure 1.12.0.1495 diff --git a/docs/dev-setup.md b/docs/dev-setup.md index 68c5a91..065e20e 100644 --- a/docs/dev-setup.md +++ b/docs/dev-setup.md @@ -7,7 +7,7 @@ First-time contributor walkthrough. After a clean clone, you should reach a gree Bareforge expects: - **Java 21** (Temurin LTS) -- **Node 20** (LTS) plus `npm` +- **Node 22** (LTS) plus `npm` - **Clojure CLI** 1.12+ — `clj` / `clojure` on PATH - **clj-kondo** and **cljfmt** on PATH @@ -15,7 +15,7 @@ A `.tool-versions` file at the repo root pins exact versions. If you use [`mise` ```bash java -version # 21.x -node --version # v20.x +node --version # v22.x clojure --version # 1.12+ clj-kondo --version cljfmt --version