Skip to content

## [0.3.22] - 2026-01-14 #74

## [0.3.22] - 2026-01-14

## [0.3.22] - 2026-01-14 #74

Workflow file for this run

name: Build, test, release & deploy
on:
push:
branches: [ main ]
tags: [ 'v*' ]
pull_request:
branches: [ main ]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-spa:
name: Build & test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install
run: npm ci
- name: Test
run: npm test -- --run
- name: Build
run: npm run build
- name: Upload dist artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
release:
name: Create GitHub release (tags)
needs: build-spa
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Download dist artifact
uses: actions/download-artifact@v4
with:
name: dist
path: release-files
- name: Prepare Assets
run: |
cp release-files/index.html ./GitLabViz.html
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
GitLabViz.html
generate_release_notes: true
draft: false
prerelease: false
pages:
name: Deploy GitHub Pages (tags)
needs: build-spa
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Download dist artifact
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4