From 3d6d41087922bed54b24d2d47af62cebe1d31e6c Mon Sep 17 00:00:00 2001 From: kostiask Date: Thu, 5 Mar 2026 16:48:12 +0100 Subject: [PATCH] ci: add tag-release workflow for UI packages --- .github/workflows/tag-release.yml | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/tag-release.yml diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml new file mode 100644 index 000000000..264af54e9 --- /dev/null +++ b/.github/workflows/tag-release.yml @@ -0,0 +1,45 @@ +name: Tag Release + +on: + push: + tags: + - 'v*' + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + env: + YARN_ENABLE_SCRIPTS: false + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + + - name: Build packages + run: | + yarn install --immutable + yarn build + + - name: Pack workspace tarballs + run: | + mkdir -p artifacts + + for dir in packages/*/build; do + if [ -f "$dir/package.json" ]; then + npm pack "$dir" --pack-destination artifacts + fi + done + + ls -la artifacts + + - name: Upload assets to GitHub Release + uses: softprops/action-gh-release@v2 + with: + files: artifacts/*.tgz