Skip to content

Merge pull request #12 from virtUOS/feat/ui-preferences-menu #7

Merge pull request #12 from virtUOS/feat/ui-preferences-menu

Merge pull request #12 from virtUOS/feat/ui-preferences-menu #7

Workflow file for this run

name: Publish ui package
# Django packages need no publish step: GitHub's tag-archive tarball URLs
# (https://github.com/virtUOS/basicbar/archive/refs/tags/<pkg>/vX.Y.Z.tar.gz)
# are public and reachable as soon as the tag is pushed.
#
# @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*"
permissions:
contents: write
jobs:
ui-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Verify tag matches package.json version
run: |
VERSION="${GITHUB_REF_NAME#ui/v}"
PKG_VERSION="$(node -p "require('./packages/ui/package.json').version")"
if [ "$VERSION" != "$PKG_VERSION" ]; then
echo "Tag $GITHUB_REF_NAME ≠ package.json-Version $PKG_VERSION"; exit 1
fi
- run: cd packages/ui && npm ci --no-fund --no-audit
- run: cd packages/ui && npm run build
- run: cd packages/ui && npm pack
- 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