chore(deps): update netlify-cli to v18 #3325
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@v4 | |
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@v4 | |
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@v4 | |
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@v3 | |
# - name: β Setup node | |
# uses: actions/setup-node@v3 | |
# with: | |
# cache: npm | |
# node-version-file: '.nvmrc' | |
# - name: π₯ Install deps | |
# run: npm install | |
# - name: β‘ Vitest with coverage | |
# run: npm run test:coverage | |
# - name: β Codecov | |
# run: npx codecov | |
build: | |
name: πΏ Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v4 | |
- name: β Setup node | |
uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
node-version-file: '.nvmrc' | |
- name: π₯ Install deps | |
run: npm install | |
- name: βοΈ Build | |
run: npm run build | |
release: | |
name: π Release | |
runs-on: ubuntu-latest | |
needs: [prettier, lint, typecheck, build] | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: β¬οΈ Checkout repo | |
uses: actions/checkout@v4 | |
- name: β Setup node | |
uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
node-version-file: '.nvmrc' | |
- name: π₯ Install deps | |
run: npm install | |
- name: π Semantic Release | |
run: npx semantic-release | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |