diff --git a/.github/workflows/build-and-publish-components-pkg.yml b/.github/workflows/build-and-publish-components-pkg.yml index 82ef587..1cac93e 100644 --- a/.github/workflows/build-and-publish-components-pkg.yml +++ b/.github/workflows/build-and-publish-components-pkg.yml @@ -40,6 +40,30 @@ jobs: path: schemavaults-ui.tgz retention-days: 2 + Storybook-Tests: + name: "Storybook Tests" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: ${{ env.BUN_VERSION }} + - name: Configure bun to install from GitHub Packages + run: rm -rf .npmrc + - name: Install dependencies + run: bun install + env: + SCHEMAVAULTS_GITHUB_PACKAGE_REGISTRY_USER: ${{ github.actor }} + SCHEMAVAULTS_GITHUB_PACKAGE_REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Install Playwright Chromium (with system deps) + run: bunx playwright install --with-deps chromium + - name: Build Storybook + run: bun run build:storybook + - name: Run Storybook tests (interaction + smoke) + run: bun run test-storybook:ci + Publish-Package-To-GitHub: name: "Publish @schemavaults/ui to GitHub Packages" runs-on: ubuntu-latest @@ -47,6 +71,7 @@ jobs: packages: write needs: - Build + - Storybook-Tests steps: - name: Checkout uses: actions/checkout@v6 @@ -82,6 +107,7 @@ jobs: id-token: write # Required for OIDC needs: - Build + - Storybook-Tests steps: - uses: actions/setup-node@v5 with: diff --git a/package.json b/package.json index d0eabe1..7e0a35e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@schemavaults/ui", - "version": "0.72.2", + "version": "0.72.3", "private": false, "license": "UNLICENSED", "description": "React.js UI components for SchemaVaults frontend applications",