Skip to content

Commit

Permalink
update pnpm setup (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Sep 3, 2024
1 parent 7a1052b commit 2ece2a5
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,36 @@ on:
workflow_dispatch:
inputs:
branch:
description: 'GitHub branch to run the build off.'
description: "GitHub branch to run the build off."
required: true
default: 'master'
default: "master"

jobs:
build:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--max_old_space_size=4096'
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- name: Checkout n8n repo
uses: actions/checkout@v3
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

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4

- name: Setup Node.js
uses: actions/setup-node@v3
- run: corepack enable
- uses: actions/setup-node@v4.0.2
with:
node-version: 16.x
cache: 'pnpm'
node-version: 20.x
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build Storybook
working-directory: packages/design-system
run: |
pnpm install
cd packages/design-system/
pnpm build:storybook
cd storybook-static
git init
Expand All @@ -52,4 +51,4 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: 'packages/design-system/storybook-static'
directory: "packages/design-system/storybook-static"

0 comments on commit 2ece2a5

Please sign in to comment.