Skip to content

Merge pull request #51 from tr00st/fixing-dev-dependency-issues #29

Merge pull request #51 from tr00st/fixing-dev-dependency-issues

Merge pull request #51 from tr00st/fixing-dev-dependency-issues #29

Workflow file for this run

name: CI
on: push
jobs:
build:
name: Build & test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install --no-package-lock
- run: npm test
- run: npm run build-storybook --quiet
- uses: actions/upload-artifact@v4
# Only publish examples using the main branch, and only from one build
if: github.ref == 'refs/heads/main' && matrix.node-version == '24.x'
with:
name: examples
path: examples/*
if-no-files-found: error
publish:
if: github.ref == 'refs/heads/main'
name: Deploy storybook examples
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: examples
path: examples
- name: Deploy to gh-pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: examples