Files
triggershell/.gitea/workflows/release.yaml
T
valknarandClaude Sonnet 5 ef453eadd0
Release / release (push) Canceled after 8m18s
Bump release workflow's Node to 22 - pnpm 11 needs it to even run
pnpm 11.21.0 (pinned in packageManager) now uses node:sqlite
internally, which requires Node >=22.13 - unrelated to this project's
own engines.node: >=20 floor for end users. With node-version: 20 the
runner's pnpm binary couldn't execute at all (ERR_UNKNOWN_BUILTIN_MODULE
on the first pnpm invocation inside actions/setup-node's cache-path
detection), before ever reaching the actual lint/build/publish steps.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-16 14:05:48 +02:00

39 lines
907 B
YAML

name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v4
- uses: https://github.com/pnpm/action-setup@v4
with:
version: 11.21.0
- uses: https://github.com/actions/setup-node@v4
with:
node-version: 22
cache: pnpm
registry-url: https://dev.pivoine.art/api/packages/valknar/npm/
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
- run: pnpm run typecheck
- run: pnpm run format:check
- run: pnpm run test
- run: pnpm run build
- name: Set package version from the tag
run: npm pkg set version="${GITHUB_REF_NAME#v}"
- name: Publish to Gitea npm registry
run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_TOKEN }}