unpack: Move fromFile to server entry point
#517
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 site | |
| on: | |
| push: | |
| branches-ignore: | |
| - master | |
| jobs: | |
| preview: | |
| name: Build & deploy | |
| runs-on: ubuntu-latest | |
| env: | |
| CI: true | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@main | |
| - name: Set up pnpm | |
| run: corepack enable | |
| - name: Setup Node.js | |
| uses: actions/setup-node@main | |
| with: | |
| node-version-file: 'package.json' | |
| cache: 'pnpm' | |
| - name: Install Dependencies | |
| run: pnpm i | |
| - name: Deploy to surge | |
| run: pnpm site:deploy-preview | |
| env: | |
| SKIP_YARN_COREPACK_CHECK: 1 | |
| SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }} | |
| SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |