Files
Mateusz PstruchaandClaude Opus 5.5 f646b31c92
Publish / publish (push) Successful in 3s
Wave background from mtps/auth as a CSS package
One self-contained stylesheet (.waves) with the wave PNG inlined and the
gradient colours, angle and tile size as custom properties. Tags publish
@mtps/waves to the Gitea npm registry. The README plans the move from
the PNG to an SVG tile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 22:47:56 +02:00

37 lines
1.0 KiB
YAML

name: Publish
# v1.2.3 -> publish @mtps/waves@1.2.3 to the Gitea npm registry
on:
push:
tags: ['v*']
jobs:
publish:
runs-on: rocky-10
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 24
registry-url: ${{ gitea.server_url }}/api/packages/${{ gitea.repository_owner }}/npm/
scope: '@mtps'
- name: Check tag matches package.json
run: |
VERSION="$(node -p 'require("./package.json").version')"
if [ "v$VERSION" != "$GITHUB_REF_NAME" ]; then
echo "tag $GITHUB_REF_NAME doesn't match package.json version $VERSION" >&2
exit 1
fi
# prepack builds dist/waves.css
- name: Publish
env:
# a token with package write access for mtps; the job token is
# only a fallback in case Gitea grants it that
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
run: npm publish