Skip to content

Publishing new Storybook build (via samlaycock) 📖 #52

Publishing new Storybook build (via samlaycock) 📖

Publishing new Storybook build (via samlaycock) 📖 #52

Workflow file for this run

name: Storybook
run-name: Publishing new Storybook build (via ${{ github.actor }}) 📖
on:
push:
branches:
- main
paths:
- www/storybook/**
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job was triggered by ${{ github.actor }} on ${{ github.ref }}."
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.x
cache: pnpm
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Publish Storybook
uses: cloudflare/wrangler-action@v3
with:
packageManager: pnpm
workingDirectory: "www/storybook"
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}