diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 7435c6d2..814b01fa 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -33,3 +33,16 @@ jobs: uses: ./.github/actions/setup - name: Cut ${{ github.event.inputs.version }} version run: npm version --sign-git-tag=true ${{ github.event.inputs.version }} + - name: Record prerelease channel + env: + VERSION: ${{ github.event.inputs.version }} + run: | + case "$VERSION" in + *-*) channel="${VERSION#*-}"; channel="${channel%%.*}" ;; + *) echo "Stable release, no channel note required."; exit 0 ;; + esac + git fetch origin "+refs/notes/semantic-release:refs/notes/semantic-release" || true + git notes --ref semantic-release add --force \ + --message "{\"channels\":[\"$channel\"]}" "v$VERSION^{commit}" + git push origin refs/notes/semantic-release + echo "Recorded v$VERSION on the '$channel' channel." diff --git a/ava.config.js b/ava.config.js index 3139f7a1..a173cb27 100644 --- a/ava.config.js +++ b/ava.config.js @@ -14,5 +14,6 @@ export default () => { }, extensions: ['ts'], nodeArguments: ['--import=tsx'], + workerThreads: false, } } diff --git a/package-lock.json b/package-lock.json index 60bef8e5..3cbaeb7d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,7 +43,7 @@ "typescript": "^6.0.3" }, "engines": { - "node": ">=22.11.0", + "node": ">=22.12.0", "npm": ">=10.0.0" } }, diff --git a/package.json b/package.json index 72f63123..acc15ae1 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ }, "./connect": { "types": "./index.d.ts", - "import": "./index.js" + "default": "./index.js" } }, "module": "index.js", @@ -65,13 +65,13 @@ "report": "c8 report" }, "engines": { - "node": ">=22.11.0", + "node": ">=22.12.0", "npm": ">=10.0.0" }, "devEngines": { "runtime": { "name": "node", - "version": "^24.11.0 || ^22.11.0" + "version": "^24.11.0 || ^22.12.0" }, "packageManager": { "name": "npm",