Skip to content

chore: explicitly add perms to workflow file #2

chore: explicitly add perms to workflow file

chore: explicitly add perms to workflow file #2

Workflow file for this run

name: Build and Deploy Storybook
on:
pull_request:
types:
- closed
permissions:
contents: write
pages: write
jobs:
build:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install dependencies
run: yarn install
- name: Build package
run: yarn run build
- name: Build Histoire
run: yarn run story:build
- name: Create CNAME file
run: echo 'ui.frappe.io' > ./.histoire/dist/CNAME
- name: Deploy Histoire to
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./.histoire/dist
publish_branch: gh-pages