Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Merge pull request #29 from Hugos68/changeset-release/main #6

Merge pull request #29 from Hugos68/changeset-release/main

Merge pull request #29 from Hugos68/changeset-release/main #6

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
env:
node_version: 20
pnpm_version: 9
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: ${{ env.pnpm_version }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run format
run: pnpm run ci:format
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: ${{ env.pnpm_version }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm run ci:lint
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: ${{ env.pnpm_version }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run check
run: pnpm run ci:check
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: ${{ env.pnpm_version }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build package
run: pnpm build