Skip to content

chore: setup pnpm with reusable organization composite (#2) #21

chore: setup pnpm with reusable organization composite (#2)

chore: setup pnpm with reusable organization composite (#2) #21

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
release:
name: 🔖
needs: test
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 semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
docs:
name: 📚
needs: release
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- uses: dyne/pnpm@v1
- uses: bitovi/github-actions-storybook-to-github-pages@v1
with:
install_command: pnpm i
build_command: pnpm run sbb
path: storybook-static