diff --git a/.github/workflows/deploy_preview.yml b/.github/workflows/deploy_preview.yml index 5c4b37c48d..7b78994152 100644 --- a/.github/workflows/deploy_preview.yml +++ b/.github/workflows/deploy_preview.yml @@ -12,10 +12,23 @@ permissions: checks: write jobs: + deploy: + if: ${{ github.repository == 'primer/css' }} + uses: primer/.github/.github/workflows/deploy_preview.yml@main + name: Deploy preview + secrets: + gh_token: ${{ secrets.GITHUB_TOKEN }} + with: + node_version: 18 + install: npm ci && cd docs && npm ci && cd .. + build: npm run build:docs:preview + output_dir: docs/public + deploy-storybook: if: ${{ github.repository == 'primer/css' }} name: Preview Storybook runs-on: ubuntu-latest + needs: deploy steps: - uses: actions/checkout@v3