Skip to content

build(deps): update xo #1127

build(deps): update xo

build(deps): update xo #1127

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout git repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'yarn'
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Build
run: yarn run build
- name: Upload compiled TypeScript
uses: actions/upload-artifact@v4
with:
name: tsc_output
path: tsc_output
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout git repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'yarn'
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Build
run: yarn run build
- name: Lint
run: yarn run lint
style:
name: Check style
runs-on: ubuntu-latest
steps:
- name: Checkout git repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'yarn'
- name: Install dependencies with Yarn
run: yarn install --immutable
- name: Build
run: yarn run build
- name: Check style
run: yarn run style
publish:
name: Publish
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
needs: [build, lint, style]
steps:
- name: Checkout git repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'yarn'
- name: Install dependencies with Yarn
run: yarn install
- name: Publish release
run: yarn run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}