actions/setup-node's cache: pnpm option tries to hit this Gitea instance's Actions cache service, which times out (ETIMEDOUT against an internal address) rather than failing fast - burning ~5 minutes on every run before falling back to an uncached install anyway. Not worth it for a release workflow that runs once per tag. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
38 lines
885 B
YAML
38 lines
885 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
|
|
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 }}
|