Skip to content

Version Packages (#214) #482

Version Packages (#214)

Version Packages (#214) #482

Workflow file for this run

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 }}