diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3008e45..2b52981 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,15 +17,16 @@ jobs: env: NODE_OPTIONS: '--max_old_space_size=4096' steps: - - uses: actions/checkout@v3 + - name: Checkout n8n repo + uses: actions/checkout@v3 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 - with: - version: 7.14.2 - name: Setup Node.js uses: actions/setup-node@v3 @@ -33,15 +34,7 @@ jobs: node-version: 16.x cache: 'pnpm' - - name: Checkout n8n repo - uses: actions/checkout@v3 - with: - repository: n8n-io/n8n - ref: ${{ github.event.inputs.branch || 'master' }} - path: n8n - - name: Build Storybook - working-directory: n8n run: | pnpm install cd packages/design-system/ @@ -59,4 +52,4 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} branch: gh-pages force: true - directory: 'n8n/packages/design-system/storybook-static' + directory: 'packages/design-system/storybook-static'