From 9de2ae28e8b9b31b34abcacc8c4099b701db1476 Mon Sep 17 00:00:00 2001 From: dselman Date: Thu, 4 Jun 2026 10:20:06 +0100 Subject: [PATCH] fix(publish): run publish on Node.js 22 and migrate tag.js off ::set-output The build now requires Node.js 22 (engines >=22; markdown-transform / cicero-core 1.0.1), so the publish workflow must build on 22. Also migrate scripts/tag.js from the deprecated `::set-output` to $GITHUB_OUTPUT. Co-Authored-By: Claude Opus 4.8 (1M context) Signed-off-by: dselman --- .github/workflows/npm-publish.yml | 4 ++-- scripts/tag.js | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index e2b9995..55b5ae7 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -25,10 +25,10 @@ jobs: - name: git checkout uses: actions/checkout@v4 - - name: Use Node.js 20.x + - name: Use Node.js 22.x uses: actions/setup-node@v4 with: - node-version: '20' + node-version: '22' registry-url: 'https://registry.npmjs.org' cache: 'npm' diff --git a/scripts/tag.js b/scripts/tag.js index 01fc4d1..fc1703d 100755 --- a/scripts/tag.js +++ b/scripts/tag.js @@ -15,6 +15,7 @@ 'use strict'; +const fs = require('fs'); const semver = require('semver'); const targetVersion = process.argv[2]; @@ -26,4 +27,10 @@ if (!semver.valid(targetVersion)) { const prerelease = semver.prerelease(targetVersion); const tag = prerelease ? 'unstable' : 'latest'; -console.log(`::set-output name=tag::--tag=${tag}`); +const output = `--tag=${tag}`; +if (process.env.GITHUB_OUTPUT) { + fs.appendFileSync(process.env.GITHUB_OUTPUT, `tag=${output} +`); +} else { + console.log(output); +}