Skip to content

Add pairing documentation #6051

Add pairing documentation

Add pairing documentation #6051

Workflow file for this run

name: Build βš™ and Deploy πŸš€
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🚚
uses: actions/checkout@v4
- name: Setup pnpm βš—
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js βš—
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies 🌐
run: pnpm install --frozen-lockfile
- name: Lint
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
run: pnpm run pretty:check
- name: Build πŸ› 
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
run: pnpm run build
- name: Run tests 🩺
run: pnpm run test
- name: Add build.txt πŸ—“
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
run: |
git log --pretty=format:'%h' -n 1 > dist/build.txt
echo >> dist/build.txt
date +%F_%T >> dist/build.txt
- name: Deploy πŸš€
if: github.ref == 'refs/heads/master'
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
single-commit: true
clean: true