Update dependency sku to v13.2.0 #5128
This file contains 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@v4 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version-file: package.json | |
- name: Install Dependencies | |
run: pnpm i | |
- name: Cache babel-loader | |
id: babel-loader-cache | |
uses: actions/cache@v4 | |
with: | |
path: 'site/node_modules/.cache/babel-loader' | |
key: babel-loader-${{ runner.os }}-${{ hashFiles('./pnpm-lock.yaml') }} | |
restore-keys: babel-loader-${{ runner.os }}- | |
- name: Build | |
run: pnpm build:site | |
- name: Deploy to surge | |
run: pnpm surge -p ./site/dist -d braid-design-system--${GITHUB_SHA}.surge.sh | |
env: | |
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }} | |
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} | |
- name: Update PR status | |
run: pnpm post-commit-status | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |