Skip to content

update pnpm setup (#6) #82

update pnpm setup (#6)

update pnpm setup (#6) #82

Workflow file for this run

name: Deploy Docs
on:
push:
branches:
- main
workflow_dispatch:
inputs:
branch:
description: "GitHub branch to run the build off."
required: true
default: "master"
jobs:
build:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- name: Checkout n8n repo
uses: actions/checkout@v4
with:
repository: n8n-io/n8n
ref: ${{ github.event.inputs.branch || 'master' }}
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- run: corepack enable
- uses: actions/[email protected]
with:
node-version: 20.x
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build Storybook
working-directory: packages/design-system
run: |
pnpm build:storybook
cd storybook-static
git init
git config --local user.email "[email protected]"
git config --local user.name "github-actions"
git add -A
git commit -m "Deploy" -a
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: "packages/design-system/storybook-static"