Files
triggershell/.gitea/workflows/release.yaml
T
valknarandClaude Sonnet 5 a11dfd8f7e
Release / release (push) Failing after 1m14s
Rename the release workflow's secret to PACKAGE_TOKEN
Gitea rejects secret names starting with GIT (not just the GITEA_/
GITHUB_ prefixes), so GITEA_PACKAGE_TOKEN wasn't a valid name.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-16 14:01:40 +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: 20
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 }}