Skip to content

fix: various (#20)

fix: various (#20) #64

Workflow file for this run

name: 📢 Release & Publish
on:
push:
branches:
- main
pull_request:
permissions:
contents: read # for checkout@v4
jobs:
test:
name: 🧪
runs-on: ubuntu-latest
steps:
- uses: dyne/pnpm@v1
- run: npx playwright install --with-deps
- run: pnpm t
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 10
- run: pnpm sbb
- uses: actions/upload-pages-artifact@v3
with:
path: storybook-static
docs:
name: 📚
needs: test
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- uses: actions/deploy-pages@v4
release:
name: 🔖
needs: docs
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: dyne/pnpm@v1
- run: pnpm build
- run: pnpm semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}