Skip to content

chore: setup pnpm with reusable organization composite #17

chore: setup pnpm with reusable organization composite

chore: setup pnpm with reusable organization composite #17

Workflow file for this run

name: 📢 Release & Publish
on:
push:
branches:
- main
pull_request:
defaults:
run:
shell: bash
permissions:
contents: read # for checkout@v4
jobs:
test:
name: 🧪
runs-on: ubuntu-latest
steps:
- uses: dyne/workflows/.github/actions/setup-pnpm.yml@main
- 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: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v3
with:
version: 9
- run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- run: pnpm i
- 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: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v3
with:
version: 9
- run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- uses: bitovi/github-actions-storybook-to-github-pages@v1
with:
install_command: pnpm i
build_command: pnpm run sbb
path: storybook-static