Skip to content

docs(blog): add shorebird code push v2 blog post #578

docs(blog): add shorebird code push v2 blog post

docs(blog): add shorebird code push v2 blog post #578

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: πŸ“š Git Checkout
uses: actions/checkout@v4
- name: βš™οΈ Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.12.x
cache: npm
cache-dependency-path: package-lock.json
- name: πŸ“¦ Install Dependencies
run: npm ci
- name: ✨ Check Format
run: npm run format:check
- name: 🧹 Lint
run: npm run lint
- name: πŸ”€ Check Spelling
run: npm run cspell "**"
- name: πŸ‘· Build website
run: npm run build
deploy:
needs: build
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
steps:
- name: πŸ“š Git Checkout
uses: actions/checkout@v4
- name: βš™οΈ Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.12.x
cache: npm
cache-dependency-path: package-lock.json
- name: πŸ“¦ Install Dependencies
run: npm ci
- name: ✨ Check Format
run: npm run format:check
- name: 🧹 Lint
run: npm run lint
- name: πŸ”€ Check Spelling
run: npm run cspell
- name: πŸ‘· Build website
run: npm run build
- name: ☁️ Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com