Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 10 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ name: Publish ui package
# @basicbar/ui is packed with `npm pack` and attached as a GitHub Release
# asset — a plain public tarball URL, no npm registry/account/token needed
# (same rationale as the GitLab Generic Package Registry before the move).
# Only ui/v* tags trigger this — auth/integrations/lti packages are Django
# packages installed straight from the archive-tarball URL, no publish job.

on:
push:
tags:
- "ui/v*"
workflow_dispatch:
inputs:
ref:
description: "Bestehender Tag, für den nachträglich ein Release-Asset erzeugt werden soll (z. B. ui/v0.2.1) — als 'Use workflow from' auswählen, dieses Feld ist nur zur Doku"
required: false

permissions:
contents: write
Expand All @@ -25,7 +22,7 @@ jobs:
ui-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-node@v4
with:
Expand All @@ -38,17 +35,15 @@ jobs:
if [ "$VERSION" != "$PKG_VERSION" ]; then
echo "Tag $GITHUB_REF_NAME ≠ package.json-Version $PKG_VERSION"; exit 1
fi
echo "VERSION=$VERSION" >> "$GITHUB_ENV"

- run: cd packages/ui && npm ci --no-fund --no-audit
- run: cd packages/ui && npm run build
- run: cd packages/ui && npm pack

- name: Attach tarball to GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "$GITHUB_REF_NAME" \
"packages/ui/basicbar-ui-$VERSION.tgz" \
--title "$GITHUB_REF_NAME" \
--notes "Siehe CHANGELOG.md für Migrationsschritte."
- name: Create release
uses: softprops/action-gh-release@v3
with:
files: packages/ui/basicbar-ui-*.tgz
fail_on_unmatched_files: true
generate_release_notes: true
draft: true
Loading