chore(deps): update actions/setup-node action to v6 #2977
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "preview builder 👀" | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| NUXT_SITE_ENV: staging # used for NuxtSEO to disable things like indexing on staging | |
| HUSKY: 0 | |
| CI: true | |
| jobs: | |
| build_and_preview: | |
| env: | |
| NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }} | |
| ALGOLIA_SEARCH_API_KEY: ${{ secrets.ALGOLIA_SEARCH_API_KEY }} | |
| ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }} | |
| if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository }} | |
| runs-on: ubuntu-latest | |
| outputs: | |
| output_urls: "${{ steps.preview_deploy.outputs.urls }}" | |
| steps: | |
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2 | |
| - name: "Install dependencies" | |
| run: bun install --production --frozen-lockfile | |
| - name: "Deploy target: staging" | |
| run: | | |
| export NODE_OPTIONS="--unhandled-rejections=strict" | |
| bun run build | |
| - name: "Deploy preview" | |
| uses: matter-labs/action-hosting-deploy@main | |
| with: | |
| repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
| firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZKSYNC_DOCS_STAGING_5EB09 }}" | |
| projectId: zksync-docs-staging-5eb09 |