chore(deps): update gatsby to v5.12.7 #567
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: 🤖 CI | |
on: [push] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CI: true | |
jobs: | |
prettier: | |
name: 🅿️ Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
node-version-file: '.nvmrc' | |
- name: 📥 Install deps | |
run: npm install | |
- name: 💅 Format check | |
run: npx prettier --cache --check . | |
lint: | |
name: ⬣ ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
node-version-file: '.nvmrc' | |
- name: 📥 Install deps | |
run: npm install | |
- name: 🔬 Lint | |
run: npm run lint | |
typecheck: | |
name: ʦ TypeScript | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
node-version-file: '.nvmrc' | |
- name: 📥 Install deps | |
run: npm install | |
- name: 🔎 Type check | |
run: npm run typecheck | |
test: | |
name: 🩺 Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
node-version-file: '.nvmrc' | |
- name: 📥 Install deps | |
run: npm install | |
- name: ⚡ Vitest | |
run: npm run test | |
release: | |
name: 🚀 Release | |
runs-on: ubuntu-latest | |
needs: [prettier, lint, typecheck, test] | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
node-version-file: '.nvmrc' | |
- name: 📥 Install deps | |
run: npm install | |
- name: 🦋 Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
version: npm run changeset:version | |
publish: npm run changeset:publish | |
commit: 'chore: release' | |
title: 'chore: release' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |